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.001153/0.001153, allocations: 174.7 kB / 13.63 MB, free: 1.684 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.393/1.393, allocations: 221.4 MB / 235.5 MB, free: 2.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000879/0.000879, allocations: 95.78 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.684e-05/2.704e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1027, allocations: 50.41 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3168/0.4195, allocations: 81.02 MB / 475.4 MB, free: 6.434 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/0.4199, allocations: 79.95 kB / 475.4 MB, free: 6.355 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01941/0.4393, allocations: 6.675 MB / 482.1 MB, free: 15.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4393, allocations: 4 kB / 482.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.014e-05/0.4394, allocations: 8 kB / 482.1 MB, free: 15.68 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.0008708/0.4403, allocations: 0.4924 MB / 482.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.4403, allocations: 8.031 kB / 482.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.589e-05/0.4404, allocations: 42.55 kB / 482.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.4405, allocations: 19.72 kB / 482.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006101/0.4412, allocations: 294.4 kB / 483 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.4412, allocations: 8 kB / 483 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.455e-05/0.4412, allocations: 4 kB / 483 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003522/0.4416, allocations: 155.6 kB / 483.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.4416, allocations: 0 / 483.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.4416, allocations: 7.953 kB / 483.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.4417, allocations: 4 kB / 483.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.804e-05/0.4418, allocations: 39.92 kB / 483.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006711/0.4424, allocations: 386.5 kB / 483.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.4426, allocations: 127.8 kB / 483.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.04e-05/0.4427, allocations: 42.7 kB / 483.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.4428, allocations: 0 / 483.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001565/0.4429, allocations: 87.28 kB / 483.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.834e-06/0.4429, allocations: 0 / 483.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003051/0.4432, allocations: 117.4 kB / 483.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.4434, allocations: 162.2 kB / 484.1 MB, free: 13.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003746/0.4438, allocations: 303 kB / 484.4 MB, free: 13.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.4438, allocations: 25.7 kB / 484.4 MB, free: 13.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.4439, allocations: 136 kB / 484.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.28e-05/0.4439, allocations: 23.94 kB / 484.6 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.249e-06/0.444, allocations: 0 / 484.6 MB, free: 12.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.4441, allocations: 330.8 kB / 484.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.085e-05/0.4442, allocations: 24 kB / 484.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.4443, allocations: 82.86 kB / 485 MB, free: 12.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.317e-05/0.4444, allocations: 39.92 kB / 485 MB, free: 12.44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4444, allocations: 0 / 485 MB, free: 12.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002263/0.4446, allocations: 125.4 kB / 485.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.4447, allocations: 5.25 kB / 485.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.4447, allocations: 0 / 485.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/0.4447, allocations: 12.06 kB / 485.2 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.4448, allocations: 16 kB / 485.2 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.4449, allocations: 3.984 kB / 485.2 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.181e-05/0.445, allocations: 7.906 kB / 485.2 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.445, allocations: 4 kB / 485.2 MB, free: 12.26 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 () * 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 9.646e-05/0.4451, allocations: 121 kB / 485.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-05/0.4452, allocations: 65.45 kB / 485.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.4454, allocations: 127.4 kB / 485.5 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.4454, allocations: 7.984 kB / 485.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4455, allocations: 0 / 485.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.4455, allocations: 0 / 485.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002264/0.4457, allocations: 257.4 kB / 485.8 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.4457, allocations: 0 / 485.8 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.383e-05/0.4458, allocations: 19.92 kB / 485.8 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.4458, allocations: 0 / 485.8 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.4458, allocations: 11.95 kB / 485.8 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.4458, allocations: 0 / 485.8 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.4458, allocations: 4 kB / 485.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.4461, allocations: 193.8 kB / 486 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.4463, allocations: 116.9 kB / 486.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.382e-05/0.4463, allocations: 4 kB / 486.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.229e-05/0.4464, allocations: 8 kB / 486.1 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.014e-05/0.4465, allocations: 11.98 kB / 486.1 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.4465, allocations: 4 kB / 486.1 MB, free: 11.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002654/0.4468, allocations: 243 kB / 486.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4468, allocations: 0 / 486.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002999/0.4471, allocations: 59.84 kB / 486.4 MB, free: 10.91 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) * 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.001378/0.4484, allocations: 1.146 MB / 487.6 MB, free: 9.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002041/0.4487, allocations: 79.91 kB / 487.7 MB, free: 9.762 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.4487, allocations: 8.25 kB / 487.7 MB, free: 9.754 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.674e-05/0.4488, allocations: 35.91 kB / 487.7 MB, free: 9.719 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.4491, allocations: 56.36 kB / 487.8 MB, free: 9.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007922/0.4499, allocations: 353.9 kB / 488.1 MB, free: 9.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.4504, allocations: 0.7519 MB / 488.9 MB, free: 8.492 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.4505, allocations: 25.59 kB / 488.9 MB, free: 8.469 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.4506, allocations: 59.41 kB / 488.9 MB, free: 8.41 MB / 362.7 MB Notification: Performance of SimCode: time 6.91e-07/0.4506, allocations: 4 kB / 488.9 MB, free: 8.406 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.4695, allocations: 4.71 MB / 493.7 MB, free: 3.812 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002265/0.4698, allocations: 205.9 kB / 493.9 MB, free: 3.586 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/2.239, allocations: 0 / 493.9 MB, free: 3.586 MB / 362.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