Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_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.000947/0.0009471, allocations: 87.7 kB / 16.31 MB, free: 6.449 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.0009805/0.0009807, allocations: 182.8 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 223.2 MB / 241.2 MB, free: 324 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002662/0.0002663, allocations: 8 kB / 300.9 MB, free: 6.355 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1152, allocations: 50.41 MB / 351.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001664/0.1169, allocations: 1.201 MB / 352.5 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006267/0.1176, allocations: 291.2 kB / 352.8 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.508e-05/0.1177, allocations: 0 / 352.8 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.742e-05/0.1178, allocations: 19.8 kB / 352.8 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.536e-05/0.1178, allocations: 11.88 kB / 352.8 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.1181, allocations: 87.83 kB / 352.9 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002974/0.1184, allocations: 227.5 kB / 353.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002493/0.1187, allocations: 130.3 kB / 353.3 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.157e-05/0.1188, allocations: 71.75 kB / 353.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.1189, allocations: 71.62 kB / 353.4 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.535e-05/0.1189, allocations: 8 kB / 353.4 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.203e-05/0.119, allocations: 23.94 kB / 353.4 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.497e-05/0.1191, allocations: 43.83 kB / 353.5 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.262e-05/0.1191, allocations: 53.62 kB / 353.5 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001901/0.1193, allocations: 151.7 kB / 353.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1194, allocations: 0 / 353.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1194, allocations: 0 / 353.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.89e-06/0.1194, allocations: 0 / 353.7 MB, free: 1.543 MB / 286.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.0006005/0.12, allocations: 442.8 kB / 354.1 MB, free: 1.062 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.12, allocations: 12.03 kB / 354.1 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.587e-05/0.1201, allocations: 62.47 kB / 354.2 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.262e-05/0.1201, allocations: 27.67 kB / 354.2 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.1204, allocations: 222.8 kB / 354.4 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.292e-05/0.1204, allocations: 20.56 kB / 354.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.1205, allocations: 24 kB / 354.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000428/0.1209, allocations: 239.4 kB / 354.7 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1209, allocations: 4 kB / 354.7 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.398e-05/0.121, allocations: 12 kB / 354.7 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.793e-05/0.121, allocations: 11.89 kB / 354.7 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.1213, allocations: 157.7 kB / 354.9 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009477/0.1222, allocations: 0.7052 MB / 355.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.1225, allocations: 170.7 kB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.1227, allocations: 85.2 kB / 355.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.1227, allocations: 8.188 kB / 355.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.1229, allocations: 107.5 kB / 356 MB, free: 15.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.1229, allocations: 3.938 kB / 356 MB, free: 15.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004141/0.1233, allocations: 217 kB / 356.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.1234, allocations: 63.25 kB / 356.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.1235, allocations: 149.8 kB / 356.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/0.1236, allocations: 33.7 kB / 356.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.1237, allocations: 136.6 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.97e-05/0.1237, allocations: 59.19 kB / 356.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.211e-05/0.1238, allocations: 4 kB / 356.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1239, allocations: 330.8 kB / 356.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.124, allocations: 60.62 kB / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.1242, allocations: 136 kB / 357.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.1243, allocations: 68.52 kB / 357.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1244, allocations: 0 / 357.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003638/0.1247, allocations: 245.4 kB / 357.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.1247, allocations: 10.33 kB / 357.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1248, allocations: 4 kB / 357.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.1248, allocations: 4 kB / 357.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.1249, allocations: 27.92 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.1249, allocations: 4 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.867e-05/0.125, allocations: 31.69 kB / 357.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.056e-05/0.1251, allocations: 11.98 kB / 357.5 MB, free: 13.44 MB / 302.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.000163/0.1253, allocations: 165.7 kB / 357.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.062e-05/0.1253, allocations: 11.91 kB / 357.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003385/0.1256, allocations: 194.3 kB / 357.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1256, allocations: 4 kB / 357.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1257, allocations: 0 / 357.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1257, allocations: 0 / 357.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007195/0.1264, allocations: 0.5726 MB / 358.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1264, allocations: 0 / 358.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.562e-05/0.1265, allocations: 19.98 kB / 358.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.1265, allocations: 7.938 kB / 358.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.1265, allocations: 0 / 358.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1265, allocations: 0 / 358.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1265, allocations: 0 / 358.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003052/0.1268, allocations: 287.6 kB / 358.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.276e-05/0.1269, allocations: 92.95 kB / 358.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.473e-05/0.1269, allocations: 4 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.986e-05/0.127, allocations: 15.98 kB / 358.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.923e-05/0.1271, allocations: 19.97 kB / 358.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.1271, allocations: 11.98 kB / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.784e-05/0.1272, allocations: 98.39 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1272, allocations: 0 / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002944/0.1275, allocations: 51.75 kB / 359.1 MB, free: 11.79 MB / 302.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.0006194/0.1281, allocations: 0.8138 MB / 359.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003066/0.1284, allocations: 179.8 kB / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1284, allocations: 0 / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.1286, allocations: 84.72 kB / 360.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.1289, allocations: 31.92 kB / 360.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.1302, allocations: 0.9495 MB / 361.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.1306, allocations: 0.7328 MB / 361.9 MB, free: 8.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.005e-05/0.1307, allocations: 25.94 kB / 361.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.1308, allocations: 59.48 kB / 361.9 MB, free: 8.801 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1308, allocations: 0 / 361.9 MB, free: 8.801 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01469/0.1455, allocations: 3.291 MB / 365.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/0.1457, allocations: 173.5 kB / 365.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.963/2.108, allocations: 3.938 kB / 365.4 MB, free: 5.379 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat