Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",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.001459/0.001459, allocations: 179.8 kB / 17.01 MB, free: 5.121 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.456/1.456, 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.0008634/0.0008633, allocations: 90.47 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002793, allocations: 8 kB / 328.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2268, allocations: 47.56 MB / 375.9 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08017/0.307, allocations: 75.17 MB / 451.1 MB, free: 5.5 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001688/0.3072, allocations: 63.97 kB / 451.1 MB, free: 5.438 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007001/0.3142, allocations: 2.841 MB / 454 MB, free: 2.574 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3143, allocations: 0 / 454 MB, free: 2.574 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.654e-05/0.3143, allocations: 7.938 kB / 454 MB, free: 2.566 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005795/0.3149, allocations: 460.6 kB / 454.4 MB, free: 2.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3149, allocations: 8.031 kB / 454.4 MB, free: 2.062 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.905e-05/0.315, allocations: 54.55 kB / 454.5 MB, free: 2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.582e-05/0.3151, allocations: 23.72 kB / 454.5 MB, free: 1.977 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.3153, allocations: 226.8 kB / 454.7 MB, free: 1.715 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.3154, allocations: 16.56 kB / 454.7 MB, free: 1.699 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.746e-05/0.3154, allocations: 28 kB / 454.8 MB, free: 1.672 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003927/0.3158, allocations: 243.4 kB / 455 MB, free: 1.422 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.3158, allocations: 0 / 455 MB, free: 1.422 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/0.3159, allocations: 12 kB / 455 MB, free: 1.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.3159, allocations: 4 kB / 455 MB, free: 1.406 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000275/0.3162, allocations: 157.7 kB / 455.2 MB, free: 1.254 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009033/0.3171, allocations: 0.6938 MB / 455.9 MB, free: 0.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002738/0.3174, allocations: 175.3 kB / 456 MB, free: 332 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.3174, allocations: 192 / 456 MB, free: 332 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001773/0.3176, allocations: 125.9 kB / 456.2 MB, free: 196 kB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.362e-06/0.3176, allocations: 0 / 456.2 MB, free: 196 kB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003929/0.318, allocations: 218 kB / 456.4 MB, free: 15.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.318, allocations: 55.41 kB / 456.4 MB, free: 15.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.571e-05/0.3181, allocations: 133 kB / 456.6 MB, free: 15.76 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.943e-05/0.3182, allocations: 41.69 kB / 456.6 MB, free: 15.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.248e-05/0.3182, allocations: 128.7 kB / 456.7 MB, free: 15.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.757e-05/0.3183, allocations: 59.16 kB / 456.8 MB, free: 15.53 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.355e-05/0.3183, allocations: 8 kB / 456.8 MB, free: 15.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.729e-05/0.3184, allocations: 329.1 kB / 457.1 MB, free: 15.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.3185, allocations: 60.62 kB / 457.2 MB, free: 15.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.3187, allocations: 132.1 kB / 457.3 MB, free: 14.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.3188, allocations: 65.03 kB / 457.4 MB, free: 14.92 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3188, allocations: 4 kB / 457.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003498/0.3192, allocations: 241.3 kB / 457.6 MB, free: 14.67 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.3192, allocations: 4 kB / 457.6 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3192, allocations: 0 / 457.6 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.3193, allocations: 7.953 kB / 457.6 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.3194, allocations: 31.92 kB / 457.7 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3194, allocations: 4 kB / 457.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.774e-05/0.3195, allocations: 23.83 kB / 457.7 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.3195, allocations: 12 kB / 457.7 MB, free: 14.59 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001327/0.3197, allocations: 157.9 kB / 457.8 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.065e-05/0.3197, allocations: 11.89 kB / 457.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003204/0.32, allocations: 204.7 kB / 458.1 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.32, allocations: 3.953 kB / 458.1 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3201, allocations: 7.938 kB / 458.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3201, allocations: 3.984 kB / 458.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006725/0.3207, allocations: 0.5612 MB / 458.6 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3208, allocations: 7.891 kB / 458.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.777e-05/0.3208, allocations: 19.92 kB / 458.7 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.3209, allocations: 4 kB / 458.7 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.3209, allocations: 4 kB / 458.7 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3209, allocations: 0 / 458.7 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/0.3209, allocations: 0 / 458.7 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.3212, allocations: 275.2 kB / 458.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.847e-05/0.3212, allocations: 92.91 kB / 459 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.513e-05/0.3213, allocations: 11.98 kB / 459 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.745e-05/0.3214, allocations: 8 kB / 459 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.788e-05/0.3214, allocations: 27.95 kB / 459.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.3214, allocations: 7.938 kB / 459.1 MB, free: 13.1 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.54e-05/0.3215, allocations: 98.14 kB / 459.2 MB, free: 13 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3215, allocations: 0 / 459.2 MB, free: 13 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000272/0.3218, allocations: 44 kB / 459.2 MB, free: 12.96 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0005612/0.3224, allocations: 0.8218 MB / 460 MB, free: 12.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002952/0.3227, allocations: 180.3 kB / 460.2 MB, free: 11.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3227, allocations: 4.062 kB / 460.2 MB, free: 11.93 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.3228, allocations: 79.92 kB / 460.3 MB, free: 11.85 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001757/0.323, allocations: 17.95 kB / 460.3 MB, free: 11.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.3246, allocations: 2.011 MB / 462.3 MB, free: 9.746 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.3249, allocations: 0.7367 MB / 463.1 MB, free: 8.984 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.138e-05/0.325, allocations: 21.95 kB / 463.1 MB, free: 8.961 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.932e-05/0.3251, allocations: 63.47 kB / 463.2 MB, free: 8.898 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3251, allocations: 0 / 463.2 MB, free: 8.898 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01601/0.3411, allocations: 3.28 MB / 466.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002415/0.3414, allocations: 166 kB / 466.6 MB, free: 5.414 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.512/1.853, allocations: 0 / 466.6 MB, free: 5.414 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat