Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",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.0011/0.001101, allocations: 180.2 kB / 16.39 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.403/1.403, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.000908/0.0009081, allocations: 89.83 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002699/0.00027, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2551, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.108/0.3632, allocations: 81.09 MB / 482.7 MB, free: 15.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.3635, allocations: 83.95 kB / 482.8 MB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01855/0.3821, allocations: 6.717 MB / 489.5 MB, free: 8.582 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3821, allocations: 0 / 489.5 MB, free: 8.582 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.349e-05/0.3821, allocations: 8 kB / 489.5 MB, free: 8.574 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007489/0.3829, allocations: 0.5349 MB / 490 MB, free: 7.984 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.3829, allocations: 8.031 kB / 490 MB, free: 7.977 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.021e-05/0.383, allocations: 46.55 kB / 490.1 MB, free: 7.922 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.09e-05/0.3831, allocations: 19.81 kB / 490.1 MB, free: 7.902 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.3835, allocations: 286.5 kB / 490.4 MB, free: 7.582 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.3836, allocations: 4 kB / 490.4 MB, free: 7.578 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.3836, allocations: 7.938 kB / 490.4 MB, free: 7.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003494/0.3839, allocations: 159.6 kB / 490.5 MB, free: 7.387 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.384, allocations: 3.984 kB / 490.5 MB, free: 7.383 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.384, allocations: 3.953 kB / 490.5 MB, free: 7.379 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.384, allocations: 4 kB / 490.5 MB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.3841, allocations: 35.92 kB / 490.6 MB, free: 7.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005889/0.3847, allocations: 398.3 kB / 491 MB, free: 6.895 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.385, allocations: 123.8 kB / 491.1 MB, free: 6.746 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.385, allocations: 4 kB / 491.1 MB, free: 6.742 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001806/0.3852, allocations: 83.44 kB / 491.2 MB, free: 6.648 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.3852, allocations: 3.938 kB / 491.2 MB, free: 6.645 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003805/0.3856, allocations: 153.3 kB / 491.3 MB, free: 6.488 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.35e-05/0.3857, allocations: 162.5 kB / 491.5 MB, free: 6.293 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003333/0.386, allocations: 305.8 kB / 491.8 MB, free: 5.984 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.3861, allocations: 29.7 kB / 491.8 MB, free: 5.949 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.703e-05/0.3862, allocations: 128 kB / 491.9 MB, free: 5.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.3862, allocations: 15.97 kB / 492 MB, free: 5.805 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-06/0.3862, allocations: 0 / 492 MB, free: 5.805 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.3864, allocations: 330.8 kB / 492.3 MB, free: 5.473 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.658e-05/0.3864, allocations: 23.98 kB / 492.3 MB, free: 5.449 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.3866, allocations: 94.84 kB / 492.4 MB, free: 5.332 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.804e-05/0.3867, allocations: 31.98 kB / 492.4 MB, free: 5.301 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3867, allocations: 4 kB / 492.4 MB, free: 5.297 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002273/0.3869, allocations: 129.2 kB / 492.6 MB, free: 5.164 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.3869, allocations: 8 kB / 492.6 MB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.3869, allocations: 320 / 492.6 MB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.387, allocations: 4 kB / 492.6 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.3871, allocations: 19.92 kB / 492.6 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.3871, allocations: 8 kB / 492.6 MB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.122e-05/0.3872, allocations: 11.98 kB / 492.6 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.3872, allocations: 7.938 kB / 492.6 MB, free: 5.105 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001549/0.3873, allocations: 151.6 kB / 492.8 MB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.28e-05/0.3874, allocations: 73.3 kB / 492.8 MB, free: 4.871 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002813/0.3877, allocations: 131.2 kB / 493 MB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3878, allocations: 0 / 493 MB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3878, allocations: 0 / 493 MB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.3878, allocations: 4 kB / 493 MB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000241/0.388, allocations: 245.5 kB / 493.2 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.388, allocations: 4.062 kB / 493.2 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.497e-05/0.3881, allocations: 19.92 kB / 493.2 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3881, allocations: 0 / 493.2 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.3882, allocations: 7.953 kB / 493.2 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3882, allocations: 0 / 493.2 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3882, allocations: 0 / 493.2 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002978/0.3885, allocations: 201.9 kB / 493.4 MB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/0.3886, allocations: 124.8 kB / 493.6 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.519e-05/0.3887, allocations: 7.984 kB / 493.6 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.227e-05/0.3888, allocations: 8 kB / 493.6 MB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.935e-05/0.3888, allocations: 7.984 kB / 493.6 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.3888, allocations: 4 kB / 493.6 MB, free: 4.008 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002573/0.3891, allocations: 241.9 kB / 493.8 MB, free: 3.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3891, allocations: 4 kB / 493.8 MB, free: 3.766 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003102/0.3894, allocations: 51.94 kB / 493.9 MB, free: 3.715 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001664/0.3911, allocations: 1.2 MB / 495.1 MB, free: 2.637 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002689/0.3914, allocations: 87.88 kB / 495.2 MB, free: 2.551 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3914, allocations: 0 / 495.2 MB, free: 2.551 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.636e-05/0.3915, allocations: 35.97 kB / 495.2 MB, free: 2.516 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.3918, allocations: 63.27 kB / 495.3 MB, free: 2.457 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.3939, allocations: 1.767 MB / 497 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.3944, allocations: 0.7478 MB / 497.8 MB, free: 15.83 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.3945, allocations: 29.67 kB / 497.8 MB, free: 15.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.3946, allocations: 55.42 kB / 497.9 MB, free: 15.75 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.3946, allocations: 3.938 kB / 497.9 MB, free: 15.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.4296, allocations: 4.762 MB / 0.4908 GB, free: 11.16 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002995/0.4299, allocations: 236.7 kB / 0.4911 GB, free: 10.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.281, allocations: 0 / 0.4911 GB, free: 10.92 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat does not exist to compare? outputFormat=mat