Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001569/0.001569, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.163/2.163, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001117, allocations: 102.8 kB / 270.9 MB, free: 13.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003985/0.0003987, allocations: 8 kB / 327 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1021, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002159/0.1043, allocations: 1.193 MB / 375.8 MB, free: 14.13 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008261/0.1052, allocations: 271.2 kB / 376.1 MB, free: 13.86 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.1053, allocations: 4 kB / 376.1 MB, free: 13.86 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.1054, allocations: 19.81 kB / 376.1 MB, free: 13.84 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.632e-05/0.1055, allocations: 7.969 kB / 376.1 MB, free: 13.83 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004436/0.106, allocations: 91.77 kB / 376.2 MB, free: 13.74 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000323/0.1063, allocations: 151.7 kB / 376.3 MB, free: 13.59 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003378/0.1067, allocations: 146.2 kB / 376.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.1068, allocations: 63.78 kB / 376.6 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.1069, allocations: 71.67 kB / 376.6 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.622e-05/0.107, allocations: 8 kB / 376.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.788e-05/0.1071, allocations: 19.98 kB / 376.6 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.198e-05/0.1072, allocations: 39.83 kB / 376.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.415e-05/0.1073, allocations: 61.58 kB / 376.7 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002735/0.1076, allocations: 151.6 kB / 376.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1076, allocations: 0 / 376.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1076, allocations: 0 / 376.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1076, allocations: 0 / 376.9 MB, free: 13.03 MB / 282.7 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.0008385/0.1085, allocations: 442.8 kB / 377.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.1085, allocations: 12.03 kB / 377.3 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.25e-05/0.1086, allocations: 54.55 kB / 377.4 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.987e-05/0.1087, allocations: 23.72 kB / 377.4 MB, free: 12.45 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003324/0.1091, allocations: 222.8 kB / 377.6 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.116e-05/0.1091, allocations: 20.56 kB / 377.7 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.347e-05/0.1092, allocations: 27.95 kB / 377.7 MB, free: 12.15 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006604/0.1099, allocations: 243.4 kB / 377.9 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.1099, allocations: 0 / 377.9 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.11, allocations: 8 kB / 377.9 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.11, allocations: 8 kB / 377.9 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004979/0.1105, allocations: 161.6 kB / 378.1 MB, free: 11.72 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.1121, allocations: 0.7052 MB / 378.8 MB, free: 10.96 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004791/0.1126, allocations: 172.1 kB / 379 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.1127, allocations: 192 / 379 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003306/0.113, allocations: 115.5 kB / 379.1 MB, free: 10.66 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.494e-06/0.113, allocations: 4 kB / 379.1 MB, free: 10.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006701/0.1137, allocations: 210 kB / 379.3 MB, free: 10.45 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.1138, allocations: 59.39 kB / 379.3 MB, free: 10.38 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.114, allocations: 157.8 kB / 379.5 MB, free: 10.21 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.437e-05/0.114, allocations: 33.7 kB / 379.5 MB, free: 10.17 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.1142, allocations: 195.1 kB / 379.7 MB, free: 9.977 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.362e-05/0.1143, allocations: 67.17 kB / 379.8 MB, free: 9.91 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.75e-05/0.1143, allocations: 4 kB / 379.8 MB, free: 9.906 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1145, allocations: 330.8 kB / 380.1 MB, free: 9.574 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.1147, allocations: 68.56 kB / 380.2 MB, free: 9.504 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/0.115, allocations: 124.1 kB / 380.3 MB, free: 9.359 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.1152, allocations: 75.97 kB / 380.4 MB, free: 9.285 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1152, allocations: 0 / 380.4 MB, free: 9.285 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006053/0.1159, allocations: 229.2 kB / 380.6 MB, free: 9.055 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.1159, allocations: 8 kB / 380.6 MB, free: 9.047 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1159, allocations: 0 / 380.6 MB, free: 9.047 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.1159, allocations: 7.984 kB / 380.6 MB, free: 9.039 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002366/0.1162, allocations: 40.12 kB / 380.7 MB, free: 9 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.1162, allocations: 4 kB / 380.7 MB, free: 8.996 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001723/0.1164, allocations: 23.8 kB / 380.7 MB, free: 8.973 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.875e-05/0.1165, allocations: 16 kB / 380.7 MB, free: 8.957 MB / 282.7 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.0002326/0.1167, allocations: 157.6 kB / 380.9 MB, free: 8.793 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.566e-05/0.1167, allocations: 11.81 kB / 380.9 MB, free: 8.781 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005493/0.1173, allocations: 199.9 kB / 381.1 MB, free: 8.582 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.1173, allocations: 8 kB / 381.1 MB, free: 8.574 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1174, allocations: 0 / 381.1 MB, free: 8.574 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.1174, allocations: 0 / 381.1 MB, free: 8.574 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.1186, allocations: 0.5726 MB / 381.6 MB, free: 7.945 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.1186, allocations: 4 kB / 381.6 MB, free: 7.941 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.1187, allocations: 19.92 kB / 381.7 MB, free: 7.922 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.1188, allocations: 7.938 kB / 381.7 MB, free: 7.914 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.1188, allocations: 8 kB / 381.7 MB, free: 7.906 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.1188, allocations: 3.953 kB / 381.7 MB, free: 7.902 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1188, allocations: 0 / 381.7 MB, free: 7.902 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000531/0.1194, allocations: 271.2 kB / 381.9 MB, free: 7.621 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.52e-05/0.1194, allocations: 88.95 kB / 382 MB, free: 7.516 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.393e-05/0.1195, allocations: 8 kB / 382 MB, free: 7.508 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.1197, allocations: 15.98 kB / 382.1 MB, free: 7.492 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.1198, allocations: 27.92 kB / 382.1 MB, free: 7.465 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.1198, allocations: 4 kB / 382.1 MB, free: 7.461 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.536e-05/0.1199, allocations: 95.2 kB / 382.2 MB, free: 7.367 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1199, allocations: 0 / 382.2 MB, free: 7.367 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004598/0.1204, allocations: 59.83 kB / 382.2 MB, free: 7.309 MB / 282.7 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.0009691/0.1214, allocations: 0.8297 MB / 383.1 MB, free: 6.449 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005403/0.122, allocations: 176 kB / 383.2 MB, free: 6.277 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.122, allocations: 0 / 383.2 MB, free: 6.277 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002194/0.1222, allocations: 83.91 kB / 383.3 MB, free: 6.195 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.1225, allocations: 23.89 kB / 383.3 MB, free: 6.172 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00274/0.1253, allocations: 2.008 MB / 385.4 MB, free: 4.078 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.1257, allocations: 0.7367 MB / 386.1 MB, free: 3.316 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.1259, allocations: 63.47 kB / 386.2 MB, free: 3.25 MB / 282.7 MB Notification: Performance of SimCode: time 1.312e-06/0.1259, allocations: 0 / 386.2 MB, free: 3.25 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.584/2.71, allocations: 2.946 MB / 389.1 MB, free: 312 kB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat