Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_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.001201/0.001201, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008427/0.0008425, allocations: 92.09 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002258/0.0002258, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2023, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08305/0.2854, allocations: 75.82 MB / 451.7 MB, free: 4.848 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002049/0.2857, allocations: 67.97 kB / 451.8 MB, free: 4.781 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007283/0.293, allocations: 2.979 MB / 454.8 MB, free: 1.785 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.293, allocations: 0 / 454.8 MB, free: 1.785 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.2931, allocations: 7.938 kB / 454.8 MB, free: 1.777 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.0004719/0.2935, allocations: 448.5 kB / 455.2 MB, free: 1.293 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.2936, allocations: 8.031 kB / 455.2 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.887e-05/0.2936, allocations: 70.47 kB / 455.3 MB, free: 1.207 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.488e-05/0.2937, allocations: 19.81 kB / 455.3 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.2939, allocations: 226.8 kB / 455.5 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.294, allocations: 20.56 kB / 455.5 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.294, allocations: 28 kB / 455.6 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003938/0.2944, allocations: 270 kB / 455.8 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.2944, allocations: 4 kB / 455.8 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.303e-05/0.2944, allocations: 12 kB / 455.9 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.2945, allocations: 8 kB / 455.9 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002612/0.2947, allocations: 157.6 kB / 456 MB, free: 428 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009467/0.2957, allocations: 0.9659 MB / 457 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.2959, allocations: 160.3 kB / 457.1 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.296, allocations: 4.172 kB / 457.1 MB, free: 15.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001648/0.2961, allocations: 110 kB / 457.2 MB, free: 15.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.2961, allocations: 4 kB / 457.3 MB, free: 15.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.000356/0.2965, allocations: 213.8 kB / 457.5 MB, free: 14.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.301e-05/0.2965, allocations: 59.41 kB / 457.5 MB, free: 14.81 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.47e-05/0.2966, allocations: 140.8 kB / 457.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.2967, allocations: 37.7 kB / 457.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.014e-05/0.2968, allocations: 132.5 kB / 457.8 MB, free: 14.49 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.554e-05/0.2968, allocations: 59.23 kB / 457.9 MB, free: 14.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.303e-05/0.2968, allocations: 12 kB / 457.9 MB, free: 14.42 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.122e-05/0.2969, allocations: 322.8 kB / 458.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.297, allocations: 60.62 kB / 458.3 MB, free: 14.03 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.2972, allocations: 141.7 kB / 458.4 MB, free: 13.86 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.2973, allocations: 69.05 kB / 458.5 MB, free: 13.8 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2973, allocations: 0 / 458.5 MB, free: 13.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003347/0.2977, allocations: 257.2 kB / 458.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2977, allocations: 11.94 kB / 458.7 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2977, allocations: 288 / 458.7 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.2977, allocations: 8 kB / 458.7 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.2978, allocations: 31.92 kB / 458.8 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.2979, allocations: 4 kB / 458.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.811e-05/0.298, allocations: 23.83 kB / 458.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.298, allocations: 12 kB / 458.8 MB, free: 13.45 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,SetBoolean1.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.0001288/0.2981, allocations: 160.4 kB / 459 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.021e-05/0.2982, allocations: 11.86 kB / 459 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003159/0.2985, allocations: 192.8 kB / 459.2 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2985, allocations: 7.938 kB / 459.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2985, allocations: 0 / 459.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.2985, allocations: 7.922 kB / 459.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006237/0.2991, allocations: 0.5915 MB / 459.8 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2992, allocations: 0 / 459.8 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.875e-05/0.2992, allocations: 15.98 kB / 459.8 MB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2992, allocations: 4 kB / 459.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.2993, allocations: 4 kB / 459.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2993, allocations: 3.938 kB / 459.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2993, allocations: 4 kB / 459.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.2995, allocations: 267.3 kB / 460.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.722e-05/0.2996, allocations: 88.92 kB / 460.2 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.297e-05/0.2996, allocations: 4 kB / 460.2 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.037e-05/0.2997, allocations: 15.98 kB / 460.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.261e-05/0.2998, allocations: 23.97 kB / 460.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.2998, allocations: 8 kB / 460.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.996e-05/0.2999, allocations: 95.27 kB / 460.3 MB, free: 11.86 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2999, allocations: 0 / 460.3 MB, free: 11.86 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002737/0.3002, allocations: 47.98 kB / 460.3 MB, free: 11.81 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,SetBoolean1.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.0005149/0.3007, allocations: 0.8217 MB / 461.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002699/0.301, allocations: 179.9 kB / 461.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.301, allocations: 0 / 461.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.3011, allocations: 79.91 kB / 461.4 MB, free: 10.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001773/0.3013, allocations: 12.56 kB / 461.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.303, allocations: 2.34 MB / 463.8 MB, free: 8.266 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.3032, allocations: 0.7406 MB / 464.5 MB, free: 7.5 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.242e-05/0.3033, allocations: 25.94 kB / 464.5 MB, free: 7.477 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.818e-05/0.3034, allocations: 65.12 kB / 464.6 MB, free: 7.414 MB / 346.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3034, allocations: 0 / 464.6 MB, free: 7.414 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01512/0.3185, allocations: 3.321 MB / 467.9 MB, free: 4.129 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002108/0.3188, allocations: 188.2 kB / 468.1 MB, free: 3.879 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.51/1.829, allocations: 0 / 468.1 MB, free: 3.879 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat