Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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 3.2.3+maint.om/package.mo", uses=false) 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 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_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",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.0009622/0.0009623, allocations: 96.27 kB / 16.93 MB, free: 6.445 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.0008785/0.0008786, allocations: 184 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004362/0.0004362, allocations: 12 kB / 280.8 MB, free: 3.664 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08313/0.08358, allocations: 47.57 MB / 328.4 MB, free: 4.02 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001652/0.08527, allocations: 1.379 MB / 329.8 MB, free: 2.625 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005321/0.08582, allocations: 275.2 kB / 330.1 MB, free: 2.355 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.374e-05/0.08591, allocations: 4 kB / 330.1 MB, free: 2.352 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.4e-05/0.086, allocations: 23.8 kB / 330.1 MB, free: 2.328 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.598e-05/0.08605, allocations: 15.92 kB / 330.1 MB, free: 2.312 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002803/0.08634, allocations: 83.89 kB / 330.2 MB, free: 2.23 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002189/0.08656, allocations: 159.7 kB / 330.3 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002303/0.0868, allocations: 149.4 kB / 330.5 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.475e-05/0.08689, allocations: 71.7 kB / 330.6 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.906e-05/0.08699, allocations: 75.66 kB / 330.6 MB, free: 1.781 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.579e-05/0.08703, allocations: 12 kB / 330.6 MB, free: 1.77 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.749e-05/0.08709, allocations: 15.94 kB / 330.7 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.079e-05/0.08715, allocations: 35.84 kB / 330.7 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.089e-05/0.08721, allocations: 65.58 kB / 330.8 MB, free: 1.648 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000178/0.08739, allocations: 163.9 kB / 330.9 MB, free: 1.488 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.0874, allocations: 0 / 330.9 MB, free: 1.488 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.08741, allocations: 0 / 330.9 MB, free: 1.488 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.08742, allocations: 0 / 330.9 MB, free: 1.488 MB / 270.1 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.0005542/0.08798, allocations: 442 kB / 331.3 MB, free: 1.008 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.08802, allocations: 12.03 kB / 331.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.182e-05/0.08809, allocations: 62.53 kB / 331.4 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.4e-05/0.08814, allocations: 23.81 kB / 331.4 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000212/0.08836, allocations: 234.7 kB / 331.7 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.187e-05/0.0884, allocations: 24.56 kB / 331.7 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.469e-05/0.08844, allocations: 27.95 kB / 331.7 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004071/0.08885, allocations: 270 kB / 332 MB, free: 296 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.08887, allocations: 3.938 kB / 332 MB, free: 292 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.0889, allocations: 11.94 kB / 332 MB, free: 280 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.08891, allocations: 8 kB / 332 MB, free: 272 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002721/0.08919, allocations: 169.6 kB / 332.2 MB, free: 104 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.09024, allocations: 0.9674 MB / 333.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002482/0.0905, allocations: 159.4 kB / 333.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.09052, allocations: 192 / 333.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001914/0.09072, allocations: 107.5 kB / 333.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.09073, allocations: 4 kB / 333.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003614/0.0911, allocations: 209.9 kB / 333.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.912e-05/0.09115, allocations: 59.41 kB / 333.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.09127, allocations: 165.4 kB / 333.8 MB, free: 14.33 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.0913, allocations: 33.7 kB / 333.9 MB, free: 14.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.32e-05/0.09139, allocations: 144.5 kB / 334 MB, free: 14.14 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.344e-05/0.09144, allocations: 59.25 kB / 334.1 MB, free: 14.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.151e-05/0.09146, allocations: 8 kB / 334.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.09158, allocations: 326.8 kB / 334.4 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.09169, allocations: 60.62 kB / 334.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.09185, allocations: 137.8 kB / 334.6 MB, free: 13.52 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.09198, allocations: 79.91 kB / 334.7 MB, free: 13.45 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.09199, allocations: 4 kB / 334.7 MB, free: 13.44 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003376/0.09233, allocations: 237.2 kB / 334.9 MB, free: 13.2 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.09235, allocations: 14.14 kB / 334.9 MB, free: 13.19 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.09237, allocations: 0 / 334.9 MB, free: 13.19 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.09238, allocations: 8 kB / 334.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.09252, allocations: 40.19 kB / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.09253, allocations: 7.938 kB / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.774e-05/0.09264, allocations: 31.78 kB / 335 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.09268, allocations: 8 kB / 335 MB, free: 13.1 MB / 286.1 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,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,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked 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 0.0001283/0.09281, allocations: 160.3 kB / 335.2 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.876e-05/0.09284, allocations: 11.81 kB / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003076/0.09315, allocations: 190.7 kB / 335.4 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.09317, allocations: 11.98 kB / 335.4 MB, free: 12.72 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.09318, allocations: 0 / 335.4 MB, free: 12.72 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.09319, allocations: 3.984 kB / 335.4 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006416/0.09383, allocations: 0.5915 MB / 336 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.09385, allocations: 0 / 336 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.845e-05/0.09392, allocations: 15.94 kB / 336 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.09393, allocations: 0 / 336 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.09395, allocations: 11.98 kB / 336 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.09396, allocations: 4 kB / 336 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.09396, allocations: 0 / 336 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.09425, allocations: 275.1 kB / 336.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.785e-05/0.09432, allocations: 96.81 kB / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.09435, allocations: 8 kB / 336.4 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.399e-05/0.09444, allocations: 4 kB / 336.4 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.974e-05/0.09451, allocations: 27.95 kB / 336.4 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.09453, allocations: 8 kB / 336.4 MB, free: 11.59 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.259e-05/0.09459, allocations: 99.27 kB / 336.5 MB, free: 11.49 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09459, allocations: 0 / 336.5 MB, free: 11.49 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.09489, allocations: 47.84 kB / 336.5 MB, free: 11.44 MB / 286.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 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,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 (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.0005433/0.09544, allocations: 0.8142 MB / 337.4 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002888/0.09574, allocations: 183.9 kB / 337.5 MB, free: 10.42 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.09575, allocations: 0 / 337.5 MB, free: 10.42 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.09587, allocations: 79.91 kB / 337.6 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/0.09605, allocations: 15.98 kB / 337.6 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.09787, allocations: 2.354 MB / 340 MB, free: 7.887 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.0982, allocations: 0.7406 MB / 340.7 MB, free: 7.121 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001073/0.09832, allocations: 29.95 kB / 340.8 MB, free: 7.094 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.832e-05/0.09843, allocations: 63.47 kB / 340.8 MB, free: 7.031 MB / 286.1 MB Notification: Performance of SimCode: time 2.71e-07/0.09843, allocations: 0 / 340.8 MB, free: 7.031 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01263/0.1111, allocations: 3.323 MB / 344.1 MB, free: 3.719 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/0.1113, allocations: 190.8 kB / 344.3 MB, free: 3.469 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/1.742, allocations: 0 / 344.3 MB, free: 3.469 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat