Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",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.001515/0.001515, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.021/2.021, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001167/0.001167, allocations: 103.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005545/0.0005542, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3415, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.4664, allocations: 75.8 MB / 450.4 MB, free: 4.852 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.4667, allocations: 67.97 kB / 450.5 MB, free: 4.785 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01665/0.4833, allocations: 3.005 MB / 453.5 MB, free: 1.758 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.466e-06/0.4834, allocations: 0 / 453.5 MB, free: 1.758 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.84e-05/0.4834, allocations: 4 kB / 453.5 MB, free: 1.754 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.001077/0.4845, allocations: 460.5 kB / 453.9 MB, free: 1.262 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.098e-05/0.4846, allocations: 8.031 kB / 454 MB, free: 1.254 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001379/0.4848, allocations: 62.53 kB / 454 MB, free: 1.184 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.4849, allocations: 27.81 kB / 454 MB, free: 1.156 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004766/0.4854, allocations: 218.8 kB / 454.3 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.318e-05/0.4855, allocations: 24.56 kB / 454.3 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.131e-05/0.4856, allocations: 31.94 kB / 454.3 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007265/0.4864, allocations: 270 kB / 454.6 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.4864, allocations: 0 / 454.6 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.584e-05/0.4865, allocations: 8 kB / 454.6 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.4865, allocations: 12 kB / 454.6 MB, free: 0.543 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004812/0.487, allocations: 161.6 kB / 454.8 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.4887, allocations: 0.9636 MB / 455.7 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004174/0.4892, allocations: 155.3 kB / 455.9 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.4892, allocations: 8.172 kB / 455.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002891/0.4895, allocations: 120.1 kB / 456 MB, free: 15.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 2.655e-06/0.4895, allocations: 0 / 456 MB, free: 15.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006805/0.4902, allocations: 205.9 kB / 456.2 MB, free: 14.85 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.4903, allocations: 55.41 kB / 456.2 MB, free: 14.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001782/0.4905, allocations: 149 kB / 456.4 MB, free: 14.63 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.087e-05/0.4905, allocations: 33.7 kB / 456.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.4907, allocations: 214.9 kB / 456.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.571e-05/0.4908, allocations: 59.25 kB / 456.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.074e-05/0.4908, allocations: 4 kB / 456.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.491, allocations: 322.8 kB / 457 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.4912, allocations: 60.62 kB / 457.1 MB, free: 13.93 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002679/0.4915, allocations: 145.7 kB / 457.2 MB, free: 13.76 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.4917, allocations: 73.05 kB / 457.3 MB, free: 13.69 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.4917, allocations: 0 / 457.3 MB, free: 13.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006034/0.4923, allocations: 257.1 kB / 457.5 MB, free: 13.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.4924, allocations: 5.562 kB / 457.5 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.4924, allocations: 4 kB / 457.5 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.4924, allocations: 4.281 kB / 457.6 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002347/0.4927, allocations: 39.86 kB / 457.6 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.4927, allocations: 4 kB / 457.6 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001614/0.4929, allocations: 23.89 kB / 457.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.854e-05/0.4929, allocations: 12 kB / 457.6 MB, free: 13.34 MB / 346.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,greaterEqual.y,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.0002086/0.4931, allocations: 160.3 kB / 457.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.626e-05/0.4932, allocations: 15.86 kB / 457.8 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005484/0.4937, allocations: 193.2 kB / 458 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.4938, allocations: 4 kB / 458 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.4938, allocations: 0 / 458 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.4938, allocations: 7.922 kB / 458 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.4949, allocations: 0.5838 MB / 458.6 MB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.495, allocations: 4 kB / 458.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/0.4951, allocations: 15.92 kB / 458.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.4951, allocations: 8 kB / 458.6 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/0.4951, allocations: 4 kB / 458.6 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.4952, allocations: 0 / 458.6 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4952, allocations: 0 / 458.6 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004668/0.4956, allocations: 271.3 kB / 458.9 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.919e-05/0.4957, allocations: 92.86 kB / 459 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.888e-05/0.4958, allocations: 7.984 kB / 459 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.4959, allocations: 4 kB / 459 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.534e-05/0.496, allocations: 31.95 kB / 459 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.4961, allocations: 11.98 kB / 459 MB, free: 11.83 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.931e-05/0.4962, allocations: 102 kB / 459.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4962, allocations: 0 / 459.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004088/0.4966, allocations: 40 kB / 459.2 MB, free: 11.7 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 (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,greaterEqual.y,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.0008734/0.4975, allocations: 0.8256 MB / 460 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005301/0.498, allocations: 176 kB / 460.2 MB, free: 10.67 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4981, allocations: 0 / 460.2 MB, free: 10.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002054/0.4983, allocations: 79.91 kB / 460.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.4986, allocations: 11.98 kB / 460.3 MB, free: 10.58 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/0.5014, allocations: 2.37 MB / 462.6 MB, free: 8.125 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004456/0.5019, allocations: 0.7405 MB / 463.4 MB, free: 7.359 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.5021, allocations: 67.47 kB / 463.4 MB, free: 7.293 MB / 346.7 MB Notification: Performance of SimCode: time 1.213e-06/0.5021, allocations: 4 kB / 463.4 MB, free: 7.289 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.589/3.092, allocations: 3.032 MB / 466.5 MB, free: 4.258 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat