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.001344/0.001344, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0008621/0.000862, allocations: 97.97 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.89e-05/1.891e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.09997, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3329/0.4329, allocations: 80.35 MB / 467.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.4332, allocations: 79.95 kB / 468 MB, free: 14.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01813/0.4513, allocations: 6.644 MB / 474.6 MB, free: 7.629 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4514, allocations: 0 / 474.6 MB, free: 7.629 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.391e-05/0.4514, allocations: 8 kB / 474.6 MB, free: 7.621 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006961/0.4521, allocations: 0.4963 MB / 475.1 MB, free: 7.074 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.4522, allocations: 15.97 kB / 475.2 MB, free: 7.059 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.767e-05/0.4522, allocations: 23.72 kB / 475.2 MB, free: 7.035 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005205/0.4528, allocations: 282.5 kB / 475.5 MB, free: 6.715 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.4528, allocations: 4 kB / 475.5 MB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/0.4528, allocations: 4 kB / 475.5 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001236/0.453, allocations: 43.92 kB / 475.5 MB, free: 6.664 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003046/0.4533, allocations: 143.6 kB / 475.6 MB, free: 6.496 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.4533, allocations: 3.953 kB / 475.6 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.4533, allocations: 0 / 475.6 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.4533, allocations: 4 kB / 475.7 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005219/0.4539, allocations: 367.1 kB / 476 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001491/0.454, allocations: 107.9 kB / 476.1 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.343e-05/0.4541, allocations: 42.64 kB / 476.2 MB, free: 5.902 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.4541, allocations: 7.984 kB / 476.2 MB, free: 5.895 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001473/0.4543, allocations: 83.31 kB / 476.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.492e-06/0.4543, allocations: 0 / 476.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002594/0.4546, allocations: 117.4 kB / 476.4 MB, free: 5.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.208e-05/0.4546, allocations: 158.3 kB / 476.5 MB, free: 5.488 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.455, allocations: 294.2 kB / 476.8 MB, free: 5.195 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.455, allocations: 25.7 kB / 476.8 MB, free: 5.164 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.651e-05/0.4551, allocations: 132 kB / 477 MB, free: 5.031 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.4551, allocations: 15.81 kB / 477 MB, free: 5.016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-06/0.4551, allocations: 0 / 477 MB, free: 5.016 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.4553, allocations: 334.8 kB / 477.3 MB, free: 4.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.114e-05/0.4553, allocations: 20 kB / 477.3 MB, free: 4.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.774e-05/0.4554, allocations: 88.44 kB / 477.4 MB, free: 4.551 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.898e-05/0.4555, allocations: 27.98 kB / 477.4 MB, free: 4.523 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.4555, allocations: 0 / 477.4 MB, free: 4.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000172/0.4557, allocations: 113.5 kB / 477.5 MB, free: 4.406 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.4557, allocations: 11.94 kB / 477.6 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.4557, allocations: 7.938 kB / 477.6 MB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.4557, allocations: 4 kB / 477.6 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.4559, allocations: 16 kB / 477.6 MB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.4559, allocations: 4 kB / 477.6 MB, free: 4.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.839e-05/0.456, allocations: 11.89 kB / 477.6 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.456, allocations: 4 kB / 477.6 MB, free: 4.348 MB / 346.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 0.0001018/0.4561, allocations: 113 kB / 477.7 MB, free: 4.23 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001734/0.4563, allocations: 117.4 kB / 477.8 MB, free: 4.109 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.047e-05/0.4563, allocations: 27.66 kB / 477.9 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002011/0.4565, allocations: 111.5 kB / 478 MB, free: 3.969 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.4565, allocations: 3.984 kB / 478 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4566, allocations: 0 / 478 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.4566, allocations: 7.938 kB / 478 MB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001972/0.4568, allocations: 225.9 kB / 478.2 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.4568, allocations: 8.062 kB / 478.2 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.15e-05/0.4569, allocations: 15.98 kB / 478.2 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.4569, allocations: 4 kB / 478.2 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.4569, allocations: 3.953 kB / 478.2 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.4569, allocations: 4.016 kB / 478.2 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.4569, allocations: 7.984 kB / 478.2 MB, free: 3.656 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002218/0.4571, allocations: 185.9 kB / 478.4 MB, free: 3.438 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.4573, allocations: 120.8 kB / 478.5 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.425e-05/0.4573, allocations: 4 kB / 478.5 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.292e-05/0.4574, allocations: 8.109 kB / 478.5 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.183e-05/0.4574, allocations: 8 kB / 478.6 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.4575, allocations: 11.98 kB / 478.6 MB, free: 3.27 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002018/0.4577, allocations: 222 kB / 478.8 MB, free: 3.051 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4577, allocations: 4 kB / 478.8 MB, free: 3.047 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002848/0.458, allocations: 51.94 kB / 478.8 MB, free: 2.996 MB / 346.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.00119/0.4592, allocations: 1.111 MB / 480 MB, free: 1.926 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001826/0.4594, allocations: 79.91 kB / 480 MB, free: 1.848 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4594, allocations: 0 / 480 MB, free: 1.848 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.841e-05/0.4594, allocations: 31.92 kB / 480.1 MB, free: 1.816 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.4598, allocations: 52.3 kB / 480.1 MB, free: 1.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006266/0.4604, allocations: 348.9 kB / 480.5 MB, free: 1.387 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.4607, allocations: 0.7475 MB / 481.2 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.039e-05/0.4608, allocations: 33.44 kB / 481.2 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.4609, allocations: 59.41 kB / 481.3 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4609, allocations: 0 / 481.3 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02112/0.4821, allocations: 4.249 MB / 485.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.4823, allocations: 177.6 kB / 485.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/2.17, allocations: 2.531 kB / 485.7 MB, free: 12.1 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