Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009543/0.0009543, allocations: 96.55 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.241e-05/2.235e-05, allocations: 4 kB / 343.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.108, allocations: 51.49 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3482/0.4563, allocations: 76.12 MB / 471.4 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001847/0.4566, allocations: 62.45 kB / 471.4 MB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007005/0.4636, allocations: 2.851 MB / 474.3 MB, free: 13.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4636, allocations: 0 / 474.3 MB, free: 13.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.4636, allocations: 9.969 kB / 474.3 MB, free: 13.14 MB / 346.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.0004522/0.4641, allocations: 436.2 kB / 474.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.4642, allocations: 8.031 kB / 474.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.255e-05/0.4642, allocations: 19.81 kB / 474.8 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/0.4644, allocations: 237 kB / 475 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.544e-05/0.4645, allocations: 11.19 kB / 475 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.4645, allocations: 19.94 kB / 475 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002423/0.4648, allocations: 135.3 kB / 475.2 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003078/0.4651, allocations: 205.2 kB / 475.4 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.4651, allocations: 3.938 kB / 475.4 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.4651, allocations: 0 / 475.4 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.4651, allocations: 9.266 kB / 475.4 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007574/0.4659, allocations: 0.6314 MB / 476 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002095/0.4661, allocations: 158.1 kB / 476.2 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.601e-05/0.4662, allocations: 72.62 kB / 476.2 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.4662, allocations: 4.172 kB / 476.2 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001418/0.4664, allocations: 107.3 kB / 476.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.4664, allocations: 4 kB / 476.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002493/0.4667, allocations: 148.8 kB / 476.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.501e-05/0.4667, allocations: 57.05 kB / 476.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.059e-05/0.4668, allocations: 136.8 kB / 476.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.4668, allocations: 36.59 kB / 476.7 MB, free: 11.14 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.972e-05/0.4669, allocations: 124.6 kB / 476.8 MB, free: 11.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.4669, allocations: 58.16 kB / 476.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.488e-06/0.4669, allocations: 0 / 476.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.907e-05/0.467, allocations: 327.1 kB / 477.2 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.002e-05/0.4671, allocations: 54.09 kB / 477.3 MB, free: 10.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.4672, allocations: 119.2 kB / 477.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.621e-05/0.4673, allocations: 57.78 kB / 477.4 MB, free: 10.49 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.4673, allocations: 0 / 477.4 MB, free: 10.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002598/0.4675, allocations: 206.7 kB / 477.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.4676, allocations: 4 kB / 477.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.4676, allocations: 4 kB / 477.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.4676, allocations: 9.672 kB / 477.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.4677, allocations: 34.41 kB / 477.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.4677, allocations: 5.406 kB / 477.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.126e-05/0.4678, allocations: 13.48 kB / 477.7 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.4679, allocations: 15.25 kB / 477.7 MB, free: 10.27 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 () * 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 7.163e-05/0.4679, allocations: 121.2 kB / 477.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001704/0.4681, allocations: 149.7 kB / 478 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.4681, allocations: 17.06 kB / 478 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002686/0.4684, allocations: 173.4 kB / 478.2 MB, free: 9.895 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.4684, allocations: 0.9375 kB / 478.2 MB, free: 9.895 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4684, allocations: 4 kB / 478.2 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.4685, allocations: 5.438 kB / 478.2 MB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005096/0.469, allocations: 0.4944 MB / 478.7 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.469, allocations: 3.953 kB / 478.7 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.688e-05/0.4691, allocations: 22.84 kB / 478.7 MB, free: 9.453 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.4691, allocations: 0 / 478.7 MB, free: 9.453 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.4691, allocations: 5.266 kB / 478.7 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.4691, allocations: 0 / 478.7 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4691, allocations: 0 / 478.7 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002251/0.4693, allocations: 265 kB / 479 MB, free: 9.223 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.669e-05/0.4694, allocations: 94.36 kB / 479.1 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.4694, allocations: 0 / 479.1 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.501e-05/0.4695, allocations: 9.781 kB / 479.1 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.095e-05/0.4696, allocations: 26.59 kB / 479.1 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.4696, allocations: 6.562 kB / 479.1 MB, free: 9.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.138e-05/0.4696, allocations: 93.83 kB / 479.2 MB, free: 9.008 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4696, allocations: 0 / 479.2 MB, free: 9.008 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00026/0.4699, allocations: 37.31 kB / 479.2 MB, free: 8.973 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) * 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.0004224/0.4703, allocations: 0.7937 MB / 480 MB, free: 8.195 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000217/0.4706, allocations: 167.6 kB / 480.2 MB, free: 8.078 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4706, allocations: 0 / 480.2 MB, free: 8.078 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.234e-05/0.4707, allocations: 80.94 kB / 480.3 MB, free: 8.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.4709, allocations: 15.84 kB / 480.3 MB, free: 8.012 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005264/0.4714, allocations: 262 kB / 480.5 MB, free: 7.777 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000155/0.4716, allocations: 0.7415 MB / 481.3 MB, free: 7.035 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.474e-05/0.4717, allocations: 24.8 kB / 481.3 MB, free: 7.02 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.299e-05/0.4718, allocations: 57.11 kB / 481.4 MB, free: 7.004 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4718, allocations: 0 / 481.4 MB, free: 7.004 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02078/0.4925, allocations: 3.005 MB / 484.4 MB, free: 4.73 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/0.4927, allocations: 134.4 kB / 484.5 MB, free: 4.531 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.509/2.002, allocations: 0 / 484.5 MB, free: 4.531 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat