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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001056/0.001056, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.771/1.771, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 86.38 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.927e-05/1.981e-05, allocations: 0 / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08378/0.08382, allocations: 47.59 MB / 363.2 MB, free: 7 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3278/0.4116, allocations: 74.66 MB / 437.8 MB, free: 4.684 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.4119, allocations: 63.41 kB / 437.9 MB, free: 4.652 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007113/0.4191, allocations: 2.792 MB / 440.7 MB, free: 2.266 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4191, allocations: 0 / 440.7 MB, free: 2.266 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.4191, allocations: 7.938 kB / 440.7 MB, free: 2.258 MB / 314.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.000496/0.4196, allocations: 441.6 kB / 441.1 MB, free: 1.797 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.4197, allocations: 15.95 kB / 441.1 MB, free: 1.781 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.723e-05/0.4198, allocations: 19.81 kB / 441.1 MB, free: 1.762 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.42, allocations: 221.1 kB / 441.4 MB, free: 1.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.42, allocations: 12.48 kB / 441.4 MB, free: 1.508 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.489e-05/0.4201, allocations: 19.31 kB / 441.4 MB, free: 1.492 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002617/0.4203, allocations: 138 kB / 441.5 MB, free: 1.402 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003146/0.4207, allocations: 207.6 kB / 441.7 MB, free: 1.234 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.4207, allocations: 0 / 441.7 MB, free: 1.234 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/0.4207, allocations: 0 / 441.7 MB, free: 1.234 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.4207, allocations: 4 kB / 441.7 MB, free: 1.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008785/0.4216, allocations: 0.6442 MB / 442.4 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.4219, allocations: 148.9 kB / 442.5 MB, free: 0.543 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.494e-05/0.422, allocations: 74.06 kB / 442.6 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.422, allocations: 4.188 kB / 442.6 MB, free: 500 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/0.4222, allocations: 105.4 kB / 442.7 MB, free: 404 kB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.763e-06/0.4222, allocations: 4 kB / 442.7 MB, free: 400 kB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003118/0.4225, allocations: 159.4 kB / 442.9 MB, free: 260 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.4226, allocations: 55.41 kB / 442.9 MB, free: 192 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.4227, allocations: 131.1 kB / 443 MB, free: 64 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.4227, allocations: 29.58 kB / 443.1 MB, free: 32 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.881e-05/0.4228, allocations: 138.3 kB / 443.2 MB, free: 15.9 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.491e-05/0.4229, allocations: 56.69 kB / 443.3 MB, free: 15.86 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.006e-05/0.4229, allocations: 0 / 443.3 MB, free: 15.86 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.423, allocations: 325.7 kB / 443.6 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.227e-05/0.4231, allocations: 56.97 kB / 443.6 MB, free: 15.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.4233, allocations: 108.6 kB / 443.7 MB, free: 15.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001/0.4234, allocations: 61.53 kB / 443.8 MB, free: 15.35 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4234, allocations: 0 / 443.8 MB, free: 15.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000307/0.4237, allocations: 207.2 kB / 444 MB, free: 15.18 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.4237, allocations: 8 kB / 444 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.82e-06/0.4237, allocations: 0 / 444 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.4238, allocations: 4 kB / 444 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.4239, allocations: 32.14 kB / 444.1 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.4239, allocations: 11.94 kB / 444.1 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.512e-05/0.424, allocations: 11.94 kB / 444.1 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.053e-05/0.4241, allocations: 11.75 kB / 444.1 MB, free: 15.1 MB / 330.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,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,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.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 () * 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.0001084/0.4242, allocations: 123.4 kB / 444.2 MB, free: 14.98 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002081/0.4244, allocations: 154.3 kB / 444.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.689e-05/0.4244, allocations: 7.906 kB / 444.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003208/0.4247, allocations: 182.7 kB / 444.5 MB, free: 14.69 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.4248, allocations: 7.938 kB / 444.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4248, allocations: 0 / 444.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.4248, allocations: 0 / 444.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006031/0.4254, allocations: 0.4972 MB / 445 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.4254, allocations: 3.953 kB / 445.1 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.765e-05/0.4255, allocations: 23.92 kB / 445.1 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.4255, allocations: 0 / 445.1 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.4255, allocations: 3 kB / 445.1 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.4255, allocations: 4 kB / 445.1 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.4255, allocations: 0 / 445.1 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002715/0.4258, allocations: 259 kB / 445.3 MB, free: 13.94 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.356e-05/0.4259, allocations: 96.84 kB / 445.4 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.4259, allocations: 6.938 kB / 445.4 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.428e-05/0.426, allocations: 11.98 kB / 445.4 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.555e-05/0.4261, allocations: 19.22 kB / 445.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.4261, allocations: 15.92 kB / 445.5 MB, free: 13.78 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.448e-05/0.4262, allocations: 89.16 kB / 445.6 MB, free: 13.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4262, allocations: 0 / 445.6 MB, free: 13.7 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002816/0.4265, allocations: 32 kB / 445.6 MB, free: 13.67 MB / 330.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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * 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.0005918/0.4271, allocations: 0.8 MB / 446.4 MB, free: 12.87 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002442/0.4273, allocations: 152.1 kB / 446.5 MB, free: 12.76 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.4273, allocations: 3.938 kB / 446.6 MB, free: 12.76 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.4274, allocations: 77.73 kB / 446.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.4276, allocations: 11.5 kB / 446.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005861/0.4282, allocations: 263.5 kB / 446.9 MB, free: 12.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000252/0.4285, allocations: 0.7468 MB / 447.6 MB, free: 11.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.363e-05/0.4286, allocations: 30.08 kB / 447.7 MB, free: 11.63 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.116e-05/0.4287, allocations: 58.53 kB / 447.7 MB, free: 11.61 MB / 330.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4287, allocations: 0 / 447.7 MB, free: 11.61 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06607/0.4948, allocations: 2.992 MB / 450.7 MB, free: 8.621 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002293/0.4951, allocations: 128.4 kB / 450.8 MB, free: 8.43 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/2.156, allocations: 0 / 450.8 MB, free: 8.43 MB / 330.7 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) 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