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.001544/0.001544, allocations: 187.6 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.991/1.991, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001191/0.00119, allocations: 92.42 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004061/0.0004063, allocations: 12 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.345, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1257/0.4707, allocations: 75.17 MB / 449.8 MB, free: 5.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.4711, allocations: 71.97 kB / 449.9 MB, free: 5.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01189/0.483, allocations: 2.84 MB / 452.7 MB, free: 2.656 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.483, allocations: 3.938 kB / 452.7 MB, free: 2.652 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.4831, allocations: 4 kB / 452.7 MB, free: 2.648 MB / 330.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.0008112/0.4839, allocations: 444.6 kB / 453.1 MB, free: 2.168 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.4839, allocations: 12.03 kB / 453.2 MB, free: 2.156 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.236e-05/0.484, allocations: 62.53 kB / 453.2 MB, free: 2.086 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.155e-05/0.4841, allocations: 23.72 kB / 453.2 MB, free: 2.062 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.4845, allocations: 226.8 kB / 453.5 MB, free: 1.801 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.122e-05/0.4845, allocations: 20.56 kB / 453.5 MB, free: 1.781 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.763e-05/0.4846, allocations: 24 kB / 453.5 MB, free: 1.758 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000617/0.4852, allocations: 243.4 kB / 453.7 MB, free: 1.508 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.4852, allocations: 0 / 453.7 MB, free: 1.508 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/0.4853, allocations: 7.984 kB / 453.7 MB, free: 1.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.4853, allocations: 8 kB / 453.8 MB, free: 1.492 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004693/0.4858, allocations: 161.7 kB / 453.9 MB, free: 1.336 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.4872, allocations: 0.686 MB / 454.6 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004771/0.4877, allocations: 175.3 kB / 454.8 MB, free: 420 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.395e-05/0.4878, allocations: 8.125 kB / 454.8 MB, free: 412 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002996/0.4881, allocations: 121.9 kB / 454.9 MB, free: 280 kB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 3.727e-06/0.4881, allocations: 0 / 454.9 MB, free: 280 kB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007048/0.4888, allocations: 213.9 kB / 455.1 MB, free: 60 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.6e-05/0.4889, allocations: 59.41 kB / 455.2 MB, free: 15.99 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001786/0.4891, allocations: 133 kB / 455.3 MB, free: 15.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.585e-05/0.4892, allocations: 37.7 kB / 455.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.4894, allocations: 191.2 kB / 455.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.379e-05/0.4894, allocations: 71.08 kB / 455.6 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-05/0.4895, allocations: 4 kB / 455.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.4896, allocations: 326.8 kB / 455.9 MB, free: 15.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.4898, allocations: 60.62 kB / 456 MB, free: 15.15 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.4901, allocations: 130.2 kB / 456.1 MB, free: 15 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002207/0.4903, allocations: 65.05 kB / 456.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4904, allocations: 4 kB / 456.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005937/0.491, allocations: 241.2 kB / 456.4 MB, free: 14.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.491, allocations: 8 kB / 456.4 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.491, allocations: 224 / 456.4 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/0.4911, allocations: 11.95 kB / 456.4 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.4914, allocations: 35.91 kB / 456.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.4914, allocations: 4 kB / 456.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.4916, allocations: 23.84 kB / 456.5 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.031e-05/0.4916, allocations: 15.94 kB / 456.5 MB, free: 14.6 MB / 346.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 () * 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.0002198/0.4918, allocations: 149.8 kB / 456.6 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.25e-05/0.4919, allocations: 11.91 kB / 456.7 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005279/0.4924, allocations: 200.8 kB / 456.8 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.4925, allocations: 7.953 kB / 456.9 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4925, allocations: 0 / 456.9 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.4925, allocations: 0 / 456.9 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.4936, allocations: 0.565 MB / 457.4 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.4936, allocations: 11.89 kB / 457.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001406/0.4938, allocations: 19.92 kB / 457.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.4938, allocations: 0 / 457.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.4938, allocations: 8 kB / 457.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.4938, allocations: 0 / 457.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.4938, allocations: 0 / 457.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004625/0.4943, allocations: 267.3 kB / 457.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.136e-05/0.4944, allocations: 96.81 kB / 457.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.729e-05/0.4944, allocations: 8 kB / 457.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.4946, allocations: 15.98 kB / 457.8 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.4947, allocations: 27.91 kB / 457.9 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.4947, allocations: 4 kB / 457.9 MB, free: 13.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.732e-05/0.4948, allocations: 94.52 kB / 458 MB, free: 13.03 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4948, allocations: 0 / 458 MB, free: 13.03 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004619/0.4953, allocations: 40 kB / 458 MB, free: 12.99 MB / 346.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) * 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.0008512/0.4962, allocations: 0.8374 MB / 458.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004961/0.4967, allocations: 176 kB / 459 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4967, allocations: 0 / 459 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002143/0.4969, allocations: 83.91 kB / 459.1 MB, free: 11.87 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.4972, allocations: 12.38 kB / 459.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.4998, allocations: 2.038 MB / 461.1 MB, free: 9.738 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.5002, allocations: 0.7367 MB / 461.9 MB, free: 8.977 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.5004, allocations: 59.47 kB / 461.9 MB, free: 8.918 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5004, allocations: 0 / 461.9 MB, free: 8.918 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.48/2.98, allocations: 2.939 MB / 464.9 MB, free: 5.977 MB / 346.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