Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009657/0.0009656, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 227.2 MB / 245 MB, free: 5.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008776/0.0008775, allocations: 106 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002319/0.000232, allocations: 7.984 kB / 358 MB, free: 9.246 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1817, allocations: 51.49 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0854/0.2671, allocations: 77.51 MB / 487 MB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001611/0.2673, allocations: 67.97 kB / 487.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00754/0.2749, allocations: 3.051 MB / 490.1 MB, free: 9.957 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2749, allocations: 0 / 490.1 MB, free: 9.957 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.2749, allocations: 8 kB / 490.1 MB, free: 9.949 MB / 362.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.0005291/0.2755, allocations: 453.1 kB / 490.6 MB, free: 9.457 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2755, allocations: 12.03 kB / 490.6 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.354e-05/0.2756, allocations: 62.53 kB / 490.6 MB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.791e-05/0.2756, allocations: 19.81 kB / 490.7 MB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.2759, allocations: 230.7 kB / 490.9 MB, free: 9.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.844e-05/0.2759, allocations: 24.56 kB / 490.9 MB, free: 9.066 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.804e-05/0.276, allocations: 28 kB / 490.9 MB, free: 9.039 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004078/0.2764, allocations: 270 kB / 491.2 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.2764, allocations: 0 / 491.2 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.371e-05/0.2764, allocations: 11.94 kB / 491.2 MB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.2764, allocations: 4 kB / 491.2 MB, free: 8.738 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000298/0.2768, allocations: 169.6 kB / 491.4 MB, free: 8.57 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.2778, allocations: 0.9637 MB / 492.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002842/0.2781, allocations: 172.6 kB / 492.5 MB, free: 7.355 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.2782, allocations: 8.188 kB / 492.5 MB, free: 7.348 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.2784, allocations: 133.2 kB / 492.6 MB, free: 7.199 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.412e-06/0.2784, allocations: 3.938 kB / 492.7 MB, free: 7.195 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004022/0.2788, allocations: 225 kB / 492.9 MB, free: 6.969 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.2788, allocations: 85.23 kB / 493 MB, free: 6.867 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.279, allocations: 148.7 kB / 493.1 MB, free: 6.715 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.279, allocations: 37.7 kB / 493.1 MB, free: 6.672 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.997e-05/0.2791, allocations: 136.5 kB / 493.3 MB, free: 6.535 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.282e-05/0.2791, allocations: 67.23 kB / 493.3 MB, free: 6.469 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.089e-05/0.2792, allocations: 4 kB / 493.3 MB, free: 6.465 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.2793, allocations: 326.8 kB / 493.7 MB, free: 6.137 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.2794, allocations: 59.97 kB / 493.7 MB, free: 6.078 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.2796, allocations: 140.3 kB / 493.9 MB, free: 5.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.2797, allocations: 71.94 kB / 493.9 MB, free: 5.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2797, allocations: 4 kB / 493.9 MB, free: 5.836 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003606/0.2801, allocations: 253.7 kB / 494.2 MB, free: 5.582 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2801, allocations: 8 kB / 494.2 MB, free: 5.574 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2801, allocations: 0 / 494.2 MB, free: 5.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.2801, allocations: 4.281 kB / 494.2 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.2803, allocations: 39.92 kB / 494.2 MB, free: 5.531 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.2803, allocations: 11.92 kB / 494.2 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.2804, allocations: 15.94 kB / 494.3 MB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.2804, allocations: 12 kB / 494.3 MB, free: 5.492 MB / 362.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: 32 ($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,$PRE.transition2.t_start,transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001426/0.2806, allocations: 158.4 kB / 494.4 MB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.2806, allocations: 15.77 kB / 494.4 MB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003188/0.2809, allocations: 194.3 kB / 494.6 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2809, allocations: 4 kB / 494.6 MB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.281, allocations: 0 / 494.6 MB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.281, allocations: 7.984 kB / 494.6 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006966/0.2817, allocations: 0.5914 MB / 495.2 MB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2817, allocations: 0 / 495.2 MB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.791e-05/0.2818, allocations: 15.94 kB / 495.2 MB, free: 4.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.2818, allocations: 4 kB / 495.2 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.2818, allocations: 7.984 kB / 495.3 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2818, allocations: 11.94 kB / 495.3 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2818, allocations: 0 / 495.3 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003067/0.2821, allocations: 293.8 kB / 495.6 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.384e-05/0.2822, allocations: 96.86 kB / 495.6 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.2822, allocations: 8 kB / 495.7 MB, free: 3.977 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.701e-05/0.2823, allocations: 11.98 kB / 495.7 MB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.923e-05/0.2824, allocations: 19.97 kB / 495.7 MB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.2824, allocations: 8 kB / 495.7 MB, free: 3.938 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.533e-05/0.2825, allocations: 95.27 kB / 495.8 MB, free: 3.844 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2825, allocations: 0 / 495.8 MB, free: 3.844 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002999/0.2828, allocations: 43.98 kB / 495.8 MB, free: 3.801 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006633/0.2835, allocations: 0.9206 MB / 496.8 MB, free: 2.848 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000315/0.2838, allocations: 187.7 kB / 496.9 MB, free: 2.664 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2838, allocations: 0.5625 kB / 496.9 MB, free: 2.664 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.284, allocations: 79.92 kB / 497 MB, free: 2.586 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/0.2841, allocations: 18.05 kB / 497 MB, free: 2.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.286, allocations: 2.339 MB / 499.4 MB, free: 136 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.2864, allocations: 0.7444 MB / 0.4884 GB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.441e-05/0.2865, allocations: 25.89 kB / 0.4884 GB, free: 15.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.2866, allocations: 67.47 kB / 0.4885 GB, free: 15.27 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.2866, allocations: 0 / 0.4885 GB, free: 15.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01395/0.3006, allocations: 3.337 MB / 0.4917 GB, free: 12.07 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/0.3007, allocations: 175.9 kB / 0.4919 GB, free: 11.83 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.489/1.79, allocations: 7.938 kB / 0.4919 GB, free: 11.82 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat