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.001585/0.001584, allocations: 177.8 kB / 8.36 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.237/2.237, 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.001178/0.001178, allocations: 89.58 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 5.759e-05/5.819e-05, allocations: 7.938 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3659/0.3661, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.129/0.4951, allocations: 75.05 MB / 437.5 MB, free: 11.18 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.4954, allocations: 63.97 kB / 437.5 MB, free: 11.11 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01209/0.5075, allocations: 2.937 MB / 440.5 MB, free: 8.188 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5076, allocations: 2.062 kB / 440.5 MB, free: 8.188 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.178e-05/0.5076, allocations: 8 kB / 440.5 MB, free: 8.18 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.0007412/0.5084, allocations: 451.2 kB / 440.9 MB, free: 7.695 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.5085, allocations: 10.47 kB / 440.9 MB, free: 7.688 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.949e-05/0.5085, allocations: 23.72 kB / 441 MB, free: 7.664 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003355/0.5089, allocations: 226.8 kB / 441.2 MB, free: 7.402 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.5089, allocations: 13.84 kB / 441.2 MB, free: 7.391 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.646e-05/0.509, allocations: 19.98 kB / 441.2 MB, free: 7.371 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004444/0.5095, allocations: 141.1 kB / 441.3 MB, free: 7.234 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005434/0.51, allocations: 227.8 kB / 441.6 MB, free: 6.992 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.5101, allocations: 3.938 kB / 441.6 MB, free: 6.988 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.5101, allocations: 4.859 kB / 441.6 MB, free: 6.984 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.5101, allocations: 8 kB / 441.6 MB, free: 6.977 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.5116, allocations: 0.9041 MB / 442.5 MB, free: 6.023 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003559/0.512, allocations: 135.2 kB / 442.6 MB, free: 5.883 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.5122, allocations: 71.42 kB / 442.7 MB, free: 5.812 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.5122, allocations: 4.188 kB / 442.7 MB, free: 5.809 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.5125, allocations: 114 kB / 442.8 MB, free: 5.688 MB / 331.1 MB Notification: Performance of pre-optimization done (n=23): time 3.216e-06/0.5125, allocations: 4 kB / 442.8 MB, free: 5.684 MB / 331.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004343/0.513, allocations: 139.1 kB / 442.9 MB, free: 5.543 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.513, allocations: 59.39 kB / 443 MB, free: 5.473 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.5132, allocations: 137.1 kB / 443.1 MB, free: 5.328 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.533e-05/0.5133, allocations: 33.64 kB / 443.2 MB, free: 5.289 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.5134, allocations: 214.6 kB / 443.4 MB, free: 5.074 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.017e-05/0.5135, allocations: 55.33 kB / 443.4 MB, free: 5.02 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.382e-05/0.5135, allocations: 0 / 443.4 MB, free: 5.02 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.5137, allocations: 326.8 kB / 443.8 MB, free: 4.691 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.5138, allocations: 52.66 kB / 443.8 MB, free: 4.637 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.5141, allocations: 125.5 kB / 443.9 MB, free: 4.484 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.5143, allocations: 58.09 kB / 444 MB, free: 4.43 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.5143, allocations: 0 / 444 MB, free: 4.43 MB / 331.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005191/0.5148, allocations: 221.5 kB / 444.2 MB, free: 4.207 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.5148, allocations: 12 kB / 444.2 MB, free: 4.195 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.5149, allocations: 0.7031 kB / 444.2 MB, free: 4.195 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.181e-05/0.5149, allocations: 6.531 kB / 444.2 MB, free: 4.191 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.5151, allocations: 31.92 kB / 444.2 MB, free: 4.16 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.5152, allocations: 7.984 kB / 444.3 MB, free: 4.152 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001559/0.5153, allocations: 12.78 kB / 444.3 MB, free: 4.141 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/0.5154, allocations: 15.94 kB / 444.3 MB, free: 4.125 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,greaterEqual.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.0001395/0.5155, allocations: 128 kB / 444.4 MB, free: 3.992 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000366/0.5159, allocations: 145.4 kB / 444.6 MB, free: 3.844 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.695e-05/0.516, allocations: 15.81 kB / 444.6 MB, free: 3.828 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00048/0.5165, allocations: 174.8 kB / 444.7 MB, free: 3.66 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.5165, allocations: 0 / 444.7 MB, free: 3.66 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.5165, allocations: 0 / 444.7 MB, free: 3.66 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.5165, allocations: 3.984 kB / 444.7 MB, free: 3.656 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.5175, allocations: 0.5232 MB / 445.3 MB, free: 3.086 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.5176, allocations: 0 / 445.3 MB, free: 3.086 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/0.5177, allocations: 19.98 kB / 445.3 MB, free: 3.066 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.5177, allocations: 0 / 445.3 MB, free: 3.066 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.5177, allocations: 0 / 445.3 MB, free: 3.066 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.5178, allocations: 0 / 445.3 MB, free: 3.066 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5178, allocations: 4 kB / 445.3 MB, free: 3.062 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004325/0.5182, allocations: 259.6 kB / 445.5 MB, free: 2.793 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.704e-05/0.5183, allocations: 96.86 kB / 445.6 MB, free: 2.68 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.657e-05/0.5183, allocations: 4 kB / 445.6 MB, free: 2.676 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.5185, allocations: 4 kB / 445.6 MB, free: 2.672 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.694e-05/0.5186, allocations: 23.94 kB / 445.7 MB, free: 2.648 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.791e-05/0.5186, allocations: 12 kB / 445.7 MB, free: 2.637 MB / 331.1 MB Notification: Performance of sorting global known variables: time 7.578e-05/0.5187, allocations: 95.02 kB / 445.8 MB, free: 2.547 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.5187, allocations: 0 / 445.8 MB, free: 2.547 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.000444/0.5192, allocations: 36.55 kB / 445.8 MB, free: 2.512 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,greaterEqual.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.000844/0.52, allocations: 0.8056 MB / 446.6 MB, free: 1.676 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0004299/0.5205, allocations: 160.1 kB / 446.8 MB, free: 1.52 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5205, allocations: 0 / 446.8 MB, free: 1.52 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000177/0.5207, allocations: 72.5 kB / 446.8 MB, free: 1.449 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.521, allocations: 14.73 kB / 446.9 MB, free: 1.438 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009242/0.5219, allocations: 296.6 kB / 447.1 MB, free: 1.105 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.5223, allocations: 0.7385 MB / 447.9 MB, free: 352 kB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.5225, allocations: 67.41 kB / 447.9 MB, free: 284 kB / 331.1 MB Notification: Performance of SimCode: time 3.707e-06/0.5225, allocations: 4 kB / 448 MB, free: 280 kB / 331.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.501/3.024, allocations: 3.065 MB / 451 MB, free: 13.25 MB / 347.1 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