Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",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.0009535/0.0009534, allocations: 172.8 kB / 14.1 MB, free: 1.223 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.38/1.38, allocations: 205.2 MB / 219.8 MB, free: 14.19 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.0008104/0.0008105, allocations: 86.72 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.262e-05/3.264e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08605/0.0861, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2867/0.3728, allocations: 75.72 MB / 445.8 MB, free: 1.512 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000192/0.373, allocations: 67.78 kB / 445.9 MB, free: 1.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007384/0.3804, allocations: 2.979 MB / 448.9 MB, free: 14.9 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3805, allocations: 4 kB / 448.9 MB, free: 14.89 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.3805, allocations: 4 kB / 448.9 MB, free: 14.89 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0004987/0.381, allocations: 436.4 kB / 449.3 MB, free: 14.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3811, allocations: 11.97 kB / 449.3 MB, free: 14.42 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.513e-05/0.3811, allocations: 58.72 kB / 449.4 MB, free: 14.37 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.885e-05/0.3812, allocations: 27.16 kB / 449.4 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.3814, allocations: 231.8 kB / 449.6 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.3815, allocations: 19.62 kB / 449.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.362e-05/0.3815, allocations: 25.56 kB / 449.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003957/0.3819, allocations: 272.1 kB / 449.9 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3819, allocations: 0 / 449.9 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.757e-05/0.382, allocations: 17.69 kB / 449.9 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.382, allocations: 4 kB / 450 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002627/0.3823, allocations: 153.6 kB / 450.1 MB, free: 13.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.3833, allocations: 0.9624 MB / 451.1 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002373/0.3836, allocations: 151.2 kB / 451.2 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.3837, allocations: 67.3 kB / 451.3 MB, free: 12.67 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.3837, allocations: 192 / 451.3 MB, free: 12.67 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/0.3839, allocations: 117.1 kB / 451.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.362e-06/0.3839, allocations: 4 kB / 451.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.000303/0.3842, allocations: 158.2 kB / 451.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.3843, allocations: 59.39 kB / 451.6 MB, free: 12.36 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.3844, allocations: 144.9 kB / 451.8 MB, free: 12.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.3845, allocations: 33.33 kB / 451.8 MB, free: 12.2 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.631e-05/0.3845, allocations: 135 kB / 451.9 MB, free: 12.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.625e-05/0.3846, allocations: 66.27 kB / 452 MB, free: 12.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/0.3846, allocations: 7.25 kB / 452 MB, free: 12.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.3847, allocations: 322.6 kB / 452.3 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.685e-05/0.3848, allocations: 57.47 kB / 452.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.385, allocations: 138.6 kB / 452.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.3851, allocations: 65.95 kB / 452.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3851, allocations: 0 / 452.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003286/0.3855, allocations: 255.1 kB / 452.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.3855, allocations: 8 kB / 452.8 MB, free: 11.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3855, allocations: 4 kB / 452.8 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.3855, allocations: 4 kB / 452.8 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.3856, allocations: 31.92 kB / 452.9 MB, free: 11.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.3857, allocations: 7.938 kB / 452.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.452e-05/0.3858, allocations: 26.56 kB / 452.9 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/0.3858, allocations: 14.92 kB / 452.9 MB, free: 11.18 MB / 330.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,$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,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete 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 9.111e-05/0.3859, allocations: 130 kB / 453 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.156e-05/0.3859, allocations: 11.86 kB / 453 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003005/0.3862, allocations: 193.3 kB / 453.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.3863, allocations: 4 kB / 453.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3863, allocations: 3.938 kB / 453.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.3863, allocations: 7.984 kB / 453.2 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006739/0.387, allocations: 0.5809 MB / 453.8 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.387, allocations: 0 / 453.8 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.999e-05/0.387, allocations: 19.92 kB / 453.8 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3871, allocations: 0 / 453.8 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.3871, allocations: 7.438 kB / 453.9 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3871, allocations: 0 / 453.9 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3871, allocations: 4 kB / 453.9 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002665/0.3874, allocations: 273.4 kB / 454.1 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.935e-05/0.3874, allocations: 88.95 kB / 454.2 MB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.3874, allocations: 7.188 kB / 454.2 MB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.451e-05/0.3875, allocations: 7.25 kB / 454.2 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.385e-05/0.3876, allocations: 23.27 kB / 454.2 MB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.3876, allocations: 8 kB / 454.3 MB, free: 9.902 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.844e-05/0.3877, allocations: 107 kB / 454.4 MB, free: 9.805 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3877, allocations: 0 / 454.4 MB, free: 9.805 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002555/0.3879, allocations: 47.09 kB / 454.4 MB, free: 9.766 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 (step.active,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,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * 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.0005248/0.3885, allocations: 0.814 MB / 455.2 MB, free: 8.965 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002824/0.3888, allocations: 178.1 kB / 455.4 MB, free: 8.832 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3888, allocations: 0 / 455.4 MB, free: 8.832 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.3889, allocations: 79.62 kB / 455.5 MB, free: 8.773 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001866/0.3891, allocations: 15.11 kB / 455.5 MB, free: 8.762 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006183/0.3897, allocations: 294.9 kB / 455.8 MB, free: 8.477 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.39, allocations: 0.7448 MB / 456.5 MB, free: 7.707 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.997e-05/0.3901, allocations: 18.08 kB / 456.5 MB, free: 7.688 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.3902, allocations: 71.11 kB / 456.6 MB, free: 7.656 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3902, allocations: 0 / 456.6 MB, free: 7.656 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01441/0.4047, allocations: 3.36 MB / 460 MB, free: 4.305 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.4049, allocations: 152.2 kB / 460.1 MB, free: 4.082 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.533/1.938, allocations: 0 / 460.1 MB, free: 4.082 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat