Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008205/0.0008207, allocations: 99.36 kB / 291.5 MB, free: 10.72 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002804/0.0002804, allocations: 4 kB / 351.2 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2332, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09167/0.3249, allocations: 76.07 MB / 477.7 MB, free: 4.395 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.3251, allocations: 75.95 kB / 477.7 MB, free: 4.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001893/0.3271, allocations: 0.7947 MB / 478.5 MB, free: 3.531 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.3271, allocations: 0 / 478.5 MB, free: 3.531 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.3271, allocations: 0 / 478.5 MB, free: 3.531 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003229/0.3274, allocations: 339.3 kB / 478.9 MB, free: 3.152 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.3275, allocations: 8.031 kB / 478.9 MB, free: 3.145 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.998e-05/0.3275, allocations: 35.75 kB / 478.9 MB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.672e-05/0.3276, allocations: 7.953 kB / 478.9 MB, free: 3.094 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.3277, allocations: 175 kB / 479.1 MB, free: 2.883 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.3278, allocations: 2.5 kB / 479.1 MB, free: 2.883 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.3278, allocations: 8 kB / 479.1 MB, free: 2.875 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.3281, allocations: 115.3 kB / 479.2 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.3281, allocations: 3.25 kB / 479.2 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.3281, allocations: 0 / 479.2 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.3281, allocations: 7.891 kB / 479.2 MB, free: 2.742 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001088/0.3283, allocations: 27.92 kB / 479.2 MB, free: 2.715 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001308/0.3284, allocations: 157.7 kB / 479.4 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001494/0.3286, allocations: 54.58 kB / 479.4 MB, free: 2.449 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.3286, allocations: 6.406 kB / 479.5 MB, free: 2.445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.3286, allocations: 34.56 kB / 479.5 MB, free: 2.402 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.81e-07/0.3286, allocations: 0 / 479.5 MB, free: 2.402 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002547/0.3289, allocations: 85.72 kB / 479.6 MB, free: 2.312 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.3289, allocations: 56.03 kB / 479.6 MB, free: 2.246 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.133e-05/0.329, allocations: 101 kB / 479.7 MB, free: 2.141 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.3291, allocations: 25.7 kB / 479.8 MB, free: 2.109 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.3291, allocations: 84.14 kB / 479.8 MB, free: 2.023 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.3291, allocations: 7.906 kB / 479.8 MB, free: 2.016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-06/0.3291, allocations: 0 / 479.8 MB, free: 2.016 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.3292, allocations: 318.8 kB / 480.2 MB, free: 1.695 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.39e-05/0.3293, allocations: 8 kB / 480.2 MB, free: 1.688 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.681e-05/0.3293, allocations: 27.44 kB / 480.2 MB, free: 1.648 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.421e-05/0.3293, allocations: 12 kB / 480.2 MB, free: 1.637 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3293, allocations: 3.938 kB / 480.2 MB, free: 1.633 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.205e-05/0.3294, allocations: 57.62 kB / 480.3 MB, free: 1.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.3294, allocations: 8 kB / 480.3 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.3294, allocations: 0 / 480.3 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.3294, allocations: 4.125 kB / 480.3 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.63e-05/0.3295, allocations: 11.98 kB / 480.3 MB, free: 1.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.3295, allocations: 4 kB / 480.3 MB, free: 1.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.946e-05/0.3295, allocations: 3.938 kB / 480.3 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.3296, allocations: 3.984 kB / 480.3 MB, free: 1.535 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (step.counter,$CLKPRE.step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 7.548e-05/0.3296, allocations: 126 kB / 480.4 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.3298, allocations: 65.58 kB / 480.5 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.3298, allocations: 7.906 kB / 480.5 MB, free: 1.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3298, allocations: 3.938 kB / 480.5 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.788e-06/0.3298, allocations: 12 kB / 480.5 MB, free: 1.305 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3298, allocations: 0 / 480.5 MB, free: 1.305 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.228e-05/0.3299, allocations: 161.6 kB / 480.7 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.33, allocations: 0 / 480.7 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.508e-05/0.33, allocations: 11.98 kB / 480.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.33, allocations: 0 / 480.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.772e-06/0.33, allocations: 0 / 480.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.33, allocations: 0 / 480.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.33, allocations: 0 / 480.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.3302, allocations: 101 kB / 480.8 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.561e-05/0.3303, allocations: 81.02 kB / 480.9 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.3303, allocations: 3.984 kB / 480.9 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.218e-05/0.3303, allocations: 8 kB / 480.9 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.605e-06/0.3303, allocations: 0 / 480.9 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.3303, allocations: 4 kB / 480.9 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.765e-05/0.3304, allocations: 83.27 kB / 480.9 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3304, allocations: 0 / 480.9 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001716/0.3306, allocations: 8 kB / 481 MB, free: 0.7656 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: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0004928/0.3311, allocations: 0.6476 MB / 481.6 MB, free: 92 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001143/0.3312, allocations: 27.97 kB / 481.6 MB, free: 64 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3312, allocations: 0 / 481.6 MB, free: 64 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.754e-06/0.3312, allocations: 4 kB / 481.6 MB, free: 60 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002542/0.3315, allocations: 35.52 kB / 481.7 MB, free: 28 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006935/0.3322, allocations: 0.8333 MB / 482.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.3324, allocations: 0.6848 MB / 483.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.419e-05/0.3324, allocations: 8.125 kB / 483.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.631e-05/0.3325, allocations: 15.44 kB / 483.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3325, allocations: 0 / 483.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.036/1.368, allocations: 1.14 MB / 484.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002639/1.368, allocations: 191.8 kB / 484.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.465/2.833, allocations: 0 / 484.5 MB, free: 13.16 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat does not exist to compare? outputFormat=mat