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/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,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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008727/0.0008727, allocations: 94.23 kB / 16.94 MB, free: 5.98 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.0008525/0.0008525, allocations: 175 kB / 17.82 MB, free: 5.652 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.274/1.274, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004427/0.0004428, allocations: 15.44 kB / 280.8 MB, free: 3.668 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08107/0.08153, allocations: 47.58 MB / 328.4 MB, free: 4.02 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001696/0.08327, allocations: 1.182 MB / 329.6 MB, free: 2.828 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005111/0.0838, allocations: 271.2 kB / 329.9 MB, free: 2.562 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.397e-05/0.08389, allocations: 7.938 kB / 329.9 MB, free: 2.555 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.457e-05/0.08398, allocations: 19.86 kB / 329.9 MB, free: 2.535 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 3.826e-05/0.08402, allocations: 15.92 kB / 329.9 MB, free: 2.52 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002867/0.08432, allocations: 83.84 kB / 330 MB, free: 2.438 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002083/0.08454, allocations: 155.7 kB / 330.1 MB, free: 2.285 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00022/0.08477, allocations: 134.2 kB / 330.3 MB, free: 2.148 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.043e-05/0.08484, allocations: 67.77 kB / 330.3 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.713e-05/0.08495, allocations: 71.61 kB / 330.4 MB, free: 2.012 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/0.08498, allocations: 12 kB / 330.4 MB, free: 2 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.357e-05/0.08504, allocations: 19.94 kB / 330.4 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.486e-05/0.0851, allocations: 35.89 kB / 330.5 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.521e-05/0.08515, allocations: 57.58 kB / 330.5 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001648/0.08532, allocations: 155.6 kB / 330.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.08533, allocations: 4 kB / 330.7 MB, free: 1.727 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.08534, allocations: 4 kB / 330.7 MB, free: 1.723 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.08535, allocations: 0 / 330.7 MB, free: 1.723 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005213/0.08587, allocations: 438.7 kB / 331.1 MB, free: 1.246 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.08591, allocations: 8.031 kB / 331.1 MB, free: 1.238 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.082e-05/0.08598, allocations: 62.53 kB / 331.2 MB, free: 1.168 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.601e-05/0.08603, allocations: 23.72 kB / 331.2 MB, free: 1.145 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002167/0.08625, allocations: 218.8 kB / 331.4 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.079e-05/0.08629, allocations: 24.56 kB / 331.4 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.57e-05/0.08635, allocations: 31.94 kB / 331.5 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003777/0.08674, allocations: 243.4 kB / 331.7 MB, free: 0.582 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.08676, allocations: 0 / 331.7 MB, free: 0.582 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.08679, allocations: 8 kB / 331.7 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.0868, allocations: 4 kB / 331.7 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002584/0.08706, allocations: 153.7 kB / 331.9 MB, free: 432 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009077/0.08798, allocations: 0.713 MB / 332.6 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000265/0.08825, allocations: 171.4 kB / 332.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.08828, allocations: 4.188 kB / 332.8 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.08849, allocations: 107.5 kB / 332.9 MB, free: 15.36 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.0885, allocations: 0 / 332.9 MB, free: 15.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003913/0.0889, allocations: 214 kB / 333.1 MB, free: 15.14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.303e-05/0.08896, allocations: 59.39 kB / 333.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.08909, allocations: 161.7 kB / 333.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/0.08912, allocations: 37.7 kB / 333.3 MB, free: 14.86 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.654e-05/0.08922, allocations: 124.6 kB / 333.4 MB, free: 14.73 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.643e-05/0.08927, allocations: 63.2 kB / 333.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.208e-05/0.08929, allocations: 4 kB / 333.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.08941, allocations: 330.8 kB / 333.8 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.08954, allocations: 60.62 kB / 333.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.08969, allocations: 128.1 kB / 334 MB, free: 14.12 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.08981, allocations: 67.97 kB / 334.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.08982, allocations: 0 / 334.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003306/0.09016, allocations: 241.2 kB / 334.3 MB, free: 13.81 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.09018, allocations: 8 kB / 334.3 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.09019, allocations: 0 / 334.3 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.09021, allocations: 4 kB / 334.3 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.09034, allocations: 35.91 kB / 334.4 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.09037, allocations: 7.938 kB / 334.4 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.807e-05/0.09047, allocations: 43.8 kB / 334.4 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.514e-05/0.0905, allocations: 12 kB / 334.4 MB, free: 13.7 MB / 286.1 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,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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,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.0001356/0.09065, allocations: 157.8 kB / 334.6 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.831e-05/0.09067, allocations: 7.906 kB / 334.6 MB, free: 13.53 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003154/0.09099, allocations: 194.4 kB / 334.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.09101, allocations: 4 kB / 334.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.09102, allocations: 0 / 334.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.09103, allocations: 0 / 334.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00066/0.09169, allocations: 0.5804 MB / 335.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.09171, allocations: 0 / 335.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.212e-05/0.09179, allocations: 23.86 kB / 335.4 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.0918, allocations: 0 / 335.4 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.09182, allocations: 8 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.09183, allocations: 3.953 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.09184, allocations: 4 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000289/0.09213, allocations: 275.2 kB / 335.7 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.745e-05/0.09219, allocations: 92.89 kB / 335.8 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.599e-05/0.09222, allocations: 8 kB / 335.8 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.643e-05/0.09231, allocations: 7.984 kB / 335.8 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.826e-05/0.09239, allocations: 27.92 kB / 335.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.09242, allocations: 8 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.07e-05/0.09248, allocations: 99.27 kB / 335.9 MB, free: 12.11 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09248, allocations: 0 / 335.9 MB, free: 12.11 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.09277, allocations: 51.84 kB / 336 MB, free: 12.06 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,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.000602/0.09338, allocations: 0.8219 MB / 336.8 MB, free: 11.21 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002753/0.09366, allocations: 176 kB / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.09367, allocations: 0 / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.09381, allocations: 87.91 kB / 337 MB, free: 10.95 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001807/0.094, allocations: 15.95 kB / 337.1 MB, free: 10.94 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.09571, allocations: 1.99 MB / 339.1 MB, free: 8.867 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.09605, allocations: 0.7367 MB / 339.8 MB, free: 8.105 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.421e-05/0.09613, allocations: 29.94 kB / 339.8 MB, free: 8.074 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.314e-05/0.09623, allocations: 55.48 kB / 339.9 MB, free: 8.02 MB / 286.1 MB Notification: Performance of SimCode: time 4.01e-07/0.09623, allocations: 7.875 kB / 339.9 MB, free: 8.012 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01308/0.1093, allocations: 3.265 MB / 343.1 MB, free: 4.762 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002445/0.1096, allocations: 176.6 kB / 343.3 MB, free: 4.516 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.563/1.673, allocations: 0 / 343.3 MB, free: 4.516 MB / 286.1 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) Environment - environmentSimulation: 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