Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 92.97 kB / 16.95 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 182.7 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000482/0.0004822, allocations: 12 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1091, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001784/0.1109, allocations: 1.185 MB / 329.6 MB, free: 2.805 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006869/0.1116, allocations: 275.2 kB / 329.9 MB, free: 2.535 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.1118, allocations: 4 kB / 329.9 MB, free: 2.531 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001181/0.1119, allocations: 23.73 kB / 329.9 MB, free: 2.508 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.082e-05/0.112, allocations: 7.922 kB / 329.9 MB, free: 2.5 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004237/0.1124, allocations: 83.91 kB / 330 MB, free: 2.418 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003707/0.1128, allocations: 235.5 kB / 330.2 MB, free: 2.188 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003056/0.1131, allocations: 138.2 kB / 330.4 MB, free: 2.047 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.1132, allocations: 63.78 kB / 330.4 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.1134, allocations: 75.61 kB / 330.5 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.525e-05/0.1134, allocations: 12 kB / 330.5 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.024e-05/0.1135, allocations: 15.98 kB / 330.5 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.835e-05/0.1136, allocations: 35.91 kB / 330.6 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.601e-05/0.1136, allocations: 53.58 kB / 330.6 MB, free: 1.789 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002099/0.1138, allocations: 151.7 kB / 330.8 MB, free: 1.641 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1138, allocations: 4 kB / 330.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1139, allocations: 0 / 330.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.1139, allocations: 0 / 330.8 MB, free: 1.637 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006994/0.1146, allocations: 450.7 kB / 331.2 MB, free: 1.148 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.1146, allocations: 8.031 kB / 331.2 MB, free: 1.141 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.873e-05/0.1147, allocations: 54.55 kB / 331.3 MB, free: 1.078 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.256e-05/0.1148, allocations: 23.72 kB / 331.3 MB, free: 1.055 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.1151, allocations: 226.8 kB / 331.5 MB, free: 0.793 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.1151, allocations: 24.56 kB / 331.5 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.1152, allocations: 31.95 kB / 331.6 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004721/0.1157, allocations: 239.5 kB / 331.8 MB, free: 500 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.1157, allocations: 0 / 331.8 MB, free: 500 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.482e-05/0.1157, allocations: 12 kB / 331.8 MB, free: 488 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.1157, allocations: 8 kB / 331.8 MB, free: 480 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003098/0.1161, allocations: 161.6 kB / 332 MB, free: 320 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.1172, allocations: 0.6975 MB / 332.7 MB, free: 15.56 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003178/0.1175, allocations: 175.4 kB / 332.8 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.1176, allocations: 77.2 kB / 332.9 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.1177, allocations: 8.125 kB / 332.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002384/0.1179, allocations: 111.5 kB / 333 MB, free: 15.17 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.1179, allocations: 0 / 333 MB, free: 15.17 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004485/0.1184, allocations: 214 kB / 333.3 MB, free: 14.96 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.1184, allocations: 59.36 kB / 333.3 MB, free: 14.89 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.1186, allocations: 165.7 kB / 333.5 MB, free: 14.71 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.1186, allocations: 33.7 kB / 333.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.1187, allocations: 132.6 kB / 333.6 MB, free: 14.54 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.039e-05/0.1188, allocations: 59.19 kB / 333.7 MB, free: 14.48 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.474e-05/0.1188, allocations: 8 kB / 333.7 MB, free: 14.47 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1189, allocations: 322.8 kB / 334 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.1191, allocations: 64.62 kB / 334.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.1192, allocations: 128.1 kB / 334.2 MB, free: 13.93 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.1194, allocations: 71.91 kB / 334.3 MB, free: 13.86 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1194, allocations: 0 / 334.3 MB, free: 13.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003864/0.1198, allocations: 241.3 kB / 334.5 MB, free: 13.62 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.1198, allocations: 14.59 kB / 334.5 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1198, allocations: 0 / 334.5 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1198, allocations: 4 kB / 334.5 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.12, allocations: 27.92 kB / 334.6 MB, free: 13.58 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.12, allocations: 4 kB / 334.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.1201, allocations: 39.86 kB / 334.6 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.019e-05/0.1202, allocations: 11.98 kB / 334.6 MB, free: 13.52 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001941/0.1204, allocations: 157.8 kB / 334.8 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.309e-05/0.1204, allocations: 7.906 kB / 334.8 MB, free: 13.35 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003469/0.1207, allocations: 198.3 kB / 335 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1208, allocations: 0 / 335 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1208, allocations: 4 kB / 335 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.1208, allocations: 0 / 335 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007792/0.1216, allocations: 0.5726 MB / 335.5 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1216, allocations: 4 kB / 335.5 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.595e-05/0.1217, allocations: 15.98 kB / 335.6 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.1217, allocations: 0 / 335.6 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.1217, allocations: 7.953 kB / 335.6 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1217, allocations: 4 kB / 335.6 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1217, allocations: 8 kB / 335.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003273/0.1221, allocations: 279.2 kB / 335.9 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.968e-05/0.1221, allocations: 88.95 kB / 335.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.1221, allocations: 7.984 kB / 335.9 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.888e-05/0.1223, allocations: 15.95 kB / 336 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.778e-05/0.1223, allocations: 15.97 kB / 336 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.1224, allocations: 19.92 kB / 336 MB, free: 12.03 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.428e-05/0.1224, allocations: 99.2 kB / 336.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1224, allocations: 0 / 336.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003164/0.1228, allocations: 55.84 kB / 336.1 MB, free: 11.88 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006919/0.1235, allocations: 0.8179 MB / 337 MB, free: 11.03 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003227/0.1238, allocations: 184 kB / 337.1 MB, free: 10.85 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1238, allocations: 0 / 337.1 MB, free: 10.85 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001605/0.124, allocations: 91.83 kB / 337.2 MB, free: 10.76 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.1243, allocations: 27.88 kB / 337.3 MB, free: 10.73 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.126, allocations: 0.9416 MB / 338.2 MB, free: 9.719 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.1264, allocations: 0.7328 MB / 338.9 MB, free: 8.961 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.494e-05/0.1265, allocations: 21.94 kB / 339 MB, free: 8.938 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.1266, allocations: 59.48 kB / 339 MB, free: 8.879 MB / 286.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1266, allocations: 0 / 339 MB, free: 8.879 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01626/0.1429, allocations: 3.28 MB / 342.3 MB, free: 5.609 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/0.1432, allocations: 185.4 kB / 342.5 MB, free: 5.359 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.006/2.149, allocations: 0 / 342.5 MB, free: 5.359 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat