Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_cpp_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.001541/0.001541, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.307/2.307, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001137/0.001137, allocations: 91.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.354e-05/2.361e-05, allocations: 4 kB / 314.9 MB, free: 9.082 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3535, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1245/0.4781, allocations: 75.07 MB / 437.5 MB, free: 11.18 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.4784, allocations: 63.97 kB / 437.5 MB, free: 11.11 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01197/0.4904, allocations: 2.914 MB / 440.5 MB, free: 8.215 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4904, allocations: 6.969 kB / 440.5 MB, free: 8.211 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.914e-05/0.4905, allocations: 4 kB / 440.5 MB, free: 8.207 MB / 331.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.0007107/0.4912, allocations: 438.2 kB / 440.9 MB, free: 7.734 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.4913, allocations: 11.97 kB / 440.9 MB, free: 7.723 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.864e-05/0.4913, allocations: 23.72 kB / 440.9 MB, free: 7.699 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003399/0.4917, allocations: 226.8 kB / 441.2 MB, free: 7.438 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.517e-05/0.4917, allocations: 9.719 kB / 441.2 MB, free: 7.43 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.4918, allocations: 16 kB / 441.2 MB, free: 7.414 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000437/0.4923, allocations: 145.1 kB / 441.3 MB, free: 7.273 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005305/0.4928, allocations: 230.7 kB / 441.5 MB, free: 7.031 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.4928, allocations: 3.938 kB / 441.6 MB, free: 7.027 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.4929, allocations: 5.625 kB / 441.6 MB, free: 7.023 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.4929, allocations: 4 kB / 441.6 MB, free: 7.02 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.4945, allocations: 0.8961 MB / 442.5 MB, free: 6.07 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000344/0.4949, allocations: 139.1 kB / 442.6 MB, free: 5.926 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.495, allocations: 73.27 kB / 442.7 MB, free: 5.852 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.4951, allocations: 192 / 442.7 MB, free: 5.852 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00026/0.4953, allocations: 105.9 kB / 442.8 MB, free: 5.738 MB / 331.1 MB Notification: Performance of pre-optimization done (n=23): time 2.194e-06/0.4954, allocations: 0 / 442.8 MB, free: 5.738 MB / 331.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004433/0.4958, allocations: 151 kB / 442.9 MB, free: 5.586 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.4959, allocations: 51.41 kB / 443 MB, free: 5.523 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.496, allocations: 148.8 kB / 443.1 MB, free: 5.371 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.4961, allocations: 29.7 kB / 443.1 MB, free: 5.336 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.4962, allocations: 214.6 kB / 443.4 MB, free: 5.121 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.495e-05/0.4963, allocations: 47.36 kB / 443.4 MB, free: 5.074 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.414e-05/0.4964, allocations: 4 kB / 443.4 MB, free: 5.07 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.4965, allocations: 319.9 kB / 443.7 MB, free: 4.75 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.4967, allocations: 52.66 kB / 443.8 MB, free: 4.695 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.4969, allocations: 133.5 kB / 443.9 MB, free: 4.535 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/0.4971, allocations: 54.11 kB / 443.9 MB, free: 4.484 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.4971, allocations: 4 kB / 444 MB, free: 4.48 MB / 331.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005474/0.4976, allocations: 213.2 kB / 444.2 MB, free: 4.266 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.4977, allocations: 7.953 kB / 444.2 MB, free: 4.258 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.4977, allocations: 7.984 kB / 444.2 MB, free: 4.25 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.4977, allocations: 4.281 kB / 444.2 MB, free: 4.246 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002527/0.498, allocations: 40.78 kB / 444.2 MB, free: 4.207 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.498, allocations: 5.484 kB / 444.2 MB, free: 4.203 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/0.4982, allocations: 19.78 kB / 444.2 MB, free: 4.184 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.525e-05/0.4983, allocations: 15.98 kB / 444.3 MB, free: 4.168 MB / 331.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,$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 0.000134/0.4984, allocations: 116 kB / 444.4 MB, free: 4.047 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003413/0.4988, allocations: 145.4 kB / 444.5 MB, free: 3.898 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.342e-05/0.4988, allocations: 19.77 kB / 444.5 MB, free: 3.879 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004765/0.4993, allocations: 173.9 kB / 444.7 MB, free: 3.711 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.4993, allocations: 0 / 444.7 MB, free: 3.711 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.4993, allocations: 0 / 444.7 MB, free: 3.711 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.4994, allocations: 4 kB / 444.7 MB, free: 3.707 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.5004, allocations: 0.5256 MB / 445.2 MB, free: 3.137 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.5004, allocations: 0 / 445.2 MB, free: 3.137 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.5006, allocations: 15.98 kB / 445.2 MB, free: 3.121 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.5006, allocations: 4 kB / 445.3 MB, free: 3.117 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.5006, allocations: 0 / 445.3 MB, free: 3.117 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.5006, allocations: 0 / 445.3 MB, free: 3.117 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.5007, allocations: 4 kB / 445.3 MB, free: 3.113 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004488/0.5011, allocations: 267.5 kB / 445.5 MB, free: 2.836 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.812e-05/0.5012, allocations: 92.86 kB / 445.6 MB, free: 2.727 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.248e-05/0.5012, allocations: 0 / 445.6 MB, free: 2.727 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.5014, allocations: 11.98 kB / 445.6 MB, free: 2.715 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.5015, allocations: 19.97 kB / 445.6 MB, free: 2.695 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-05/0.5016, allocations: 4 kB / 445.6 MB, free: 2.691 MB / 331.1 MB Notification: Performance of sorting global known variables: time 8.547e-05/0.5017, allocations: 98.92 kB / 445.7 MB, free: 2.598 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5017, allocations: 0 / 445.7 MB, free: 2.598 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004657/0.5022, allocations: 40 kB / 445.8 MB, free: 2.559 MB / 331.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.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.0008117/0.503, allocations: 0.7979 MB / 446.6 MB, free: 1.734 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0004384/0.5034, allocations: 152.1 kB / 446.7 MB, free: 1.586 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.5035, allocations: 0 / 446.7 MB, free: 1.586 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.5036, allocations: 68.97 kB / 446.8 MB, free: 1.52 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.5039, allocations: 17.69 kB / 446.8 MB, free: 1.504 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009355/0.5049, allocations: 297.2 kB / 447.1 MB, free: 1.168 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003601/0.5053, allocations: 0.7424 MB / 447.8 MB, free: 412 kB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.5055, allocations: 69.47 kB / 447.9 MB, free: 344 kB / 331.1 MB Notification: Performance of SimCode: time 1.213e-06/0.5055, allocations: 7.938 kB / 447.9 MB, free: 336 kB / 331.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.603/3.108, allocations: 3.041 MB / 451 MB, free: 13.33 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat