Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",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.001654/0.001658, allocations: 189.2 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.184/2.184, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001158/0.001158, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005587/0.000559, allocations: 8 kB / 327 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1045, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002601/0.1071, allocations: 1.371 MB / 376 MB, free: 13.96 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000884/0.1081, allocations: 279.1 kB / 376.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.1082, allocations: 4 kB / 376.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.1084, allocations: 19.8 kB / 376.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.676e-05/0.1085, allocations: 11.97 kB / 376.3 MB, free: 13.65 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004864/0.109, allocations: 95.83 kB / 376.4 MB, free: 13.55 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003577/0.1093, allocations: 159.7 kB / 376.6 MB, free: 13.4 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003651/0.1097, allocations: 153.4 kB / 376.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.1098, allocations: 67.77 kB / 376.8 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.11, allocations: 67.62 kB / 376.8 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.7e-05/0.1101, allocations: 12 kB / 376.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.186e-05/0.1102, allocations: 16 kB / 376.9 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.259e-05/0.1102, allocations: 43.83 kB / 376.9 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.879e-05/0.1103, allocations: 57.58 kB / 377 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002944/0.1106, allocations: 159.6 kB / 377.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1107, allocations: 0 / 377.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1107, allocations: 0 / 377.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1107, allocations: 0 / 377.1 MB, free: 12.82 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008207/0.1115, allocations: 458.2 kB / 377.6 MB, free: 12.33 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.1116, allocations: 8.031 kB / 377.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.776e-05/0.1117, allocations: 62.53 kB / 377.6 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.173e-05/0.1118, allocations: 19.81 kB / 377.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00034/0.1121, allocations: 230.7 kB / 377.9 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.605e-05/0.1122, allocations: 20.56 kB / 377.9 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.161e-05/0.1123, allocations: 31.95 kB / 377.9 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006933/0.113, allocations: 270 kB / 378.2 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.113, allocations: 0 / 378.2 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.517e-05/0.1131, allocations: 19.92 kB / 378.2 MB, free: 11.6 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.1131, allocations: 7.938 kB / 378.2 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005063/0.1136, allocations: 161.6 kB / 378.4 MB, free: 11.44 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.1154, allocations: 0.9791 MB / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004381/0.1159, allocations: 147.4 kB / 379.5 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.116, allocations: 192 / 379.5 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003726/0.1164, allocations: 127.4 kB / 379.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.475e-06/0.1164, allocations: 0 / 379.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006807/0.1171, allocations: 209.9 kB / 379.8 MB, free: 9.891 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/0.1171, allocations: 55.41 kB / 379.9 MB, free: 9.824 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.1174, allocations: 162.3 kB / 380 MB, free: 9.656 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/0.1174, allocations: 37.7 kB / 380.1 MB, free: 9.613 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.1176, allocations: 207 kB / 380.3 MB, free: 9.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.434e-05/0.1177, allocations: 55.2 kB / 380.3 MB, free: 9.355 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.966e-05/0.1177, allocations: 12 kB / 380.4 MB, free: 9.344 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1179, allocations: 322.8 kB / 380.7 MB, free: 9.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.1181, allocations: 68.56 kB / 380.7 MB, free: 8.949 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.1184, allocations: 129.8 kB / 380.9 MB, free: 8.793 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.1186, allocations: 75.97 kB / 380.9 MB, free: 8.719 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.1187, allocations: 3.984 kB / 380.9 MB, free: 8.715 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006403/0.1193, allocations: 245.3 kB / 381.2 MB, free: 8.469 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.1194, allocations: 7.953 kB / 381.2 MB, free: 8.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.1194, allocations: 4 kB / 381.2 MB, free: 8.457 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.1194, allocations: 4 kB / 381.2 MB, free: 8.453 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.1197, allocations: 35.92 kB / 381.2 MB, free: 8.418 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.629e-05/0.1197, allocations: 7.984 kB / 381.2 MB, free: 8.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.1199, allocations: 27.69 kB / 381.3 MB, free: 8.383 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.42e-05/0.1199, allocations: 12.28 kB / 381.3 MB, free: 8.371 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0002345/0.1202, allocations: 164.3 kB / 381.4 MB, free: 8.203 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.619e-05/0.1202, allocations: 15.81 kB / 381.5 MB, free: 8.188 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005566/0.1208, allocations: 192.2 kB / 381.6 MB, free: 7.996 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1209, allocations: 4 kB / 381.6 MB, free: 7.992 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1209, allocations: 0 / 381.6 MB, free: 7.992 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.627e-06/0.1209, allocations: 3.984 kB / 381.6 MB, free: 7.988 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001199/0.1221, allocations: 0.5954 MB / 382.2 MB, free: 7.332 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.1221, allocations: 3.984 kB / 382.2 MB, free: 7.328 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000142/0.1223, allocations: 15.94 kB / 382.3 MB, free: 7.312 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.245e-05/0.1223, allocations: 4 kB / 382.3 MB, free: 7.309 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.1223, allocations: 4 kB / 382.3 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.205e-06/0.1224, allocations: 7.984 kB / 382.3 MB, free: 7.297 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1224, allocations: 0 / 382.3 MB, free: 7.297 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004996/0.1229, allocations: 271.3 kB / 382.5 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.289e-05/0.123, allocations: 92.91 kB / 382.6 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.921e-05/0.123, allocations: 7.984 kB / 382.6 MB, free: 6.898 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.1232, allocations: 8 kB / 382.6 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.1233, allocations: 23.91 kB / 382.7 MB, free: 6.867 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.099e-05/0.1233, allocations: 11.98 kB / 382.7 MB, free: 6.855 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.71e-05/0.1234, allocations: 99.2 kB / 382.8 MB, free: 6.758 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1235, allocations: 0 / 382.8 MB, free: 6.758 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004684/0.1239, allocations: 55.84 kB / 382.8 MB, free: 6.703 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 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,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 (25): * Single equations (assignments): 21 * 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.000951/0.1249, allocations: 0.8141 MB / 383.6 MB, free: 5.863 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005513/0.1255, allocations: 180.3 kB / 383.8 MB, free: 5.688 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.1255, allocations: 4.125 kB / 383.8 MB, free: 5.684 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002174/0.1257, allocations: 79.91 kB / 383.9 MB, free: 5.605 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/0.126, allocations: 15.98 kB / 383.9 MB, free: 5.59 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002969/0.129, allocations: 2.36 MB / 386.3 MB, free: 3.137 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/0.1295, allocations: 0.7483 MB / 387 MB, free: 2.363 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.1297, allocations: 67.47 kB / 387.1 MB, free: 2.297 MB / 282.7 MB Notification: Performance of SimCode: time 1.282e-06/0.1297, allocations: 0 / 387.1 MB, free: 2.297 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.821/2.951, allocations: 3.029 MB / 390.1 MB, free: 20.25 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat