Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.0009765/0.0009766, allocations: 177.1 kB / 8.349 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.378/1.378, allocations: 221.5 MB / 230.3 MB, free: 7.508 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.0009181/0.0009179, allocations: 96.7 kB / 281.2 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.08e-05/2.088e-05, allocations: 4 kB / 337.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0883/0.08834, allocations: 50.42 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3209/0.4093, allocations: 80.34 MB / 467.9 MB, free: 14.35 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.4095, allocations: 83.89 kB / 468 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02899/0.4385, allocations: 6.495 MB / 474.5 MB, free: 7.789 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4386, allocations: 0 / 474.5 MB, free: 7.789 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.4386, allocations: 0 / 474.5 MB, free: 7.789 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.0007671/0.4394, allocations: 488.6 kB / 475 MB, free: 7.262 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.4395, allocations: 12.02 kB / 475 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.63e-05/0.4395, allocations: 19.75 kB / 475 MB, free: 7.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005636/0.4401, allocations: 265.6 kB / 475.2 MB, free: 6.934 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.4402, allocations: 0 / 475.2 MB, free: 6.934 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.486e-05/0.4402, allocations: 4 kB / 475.2 MB, free: 6.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001508/0.4404, allocations: 35.98 kB / 475.3 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003507/0.4407, allocations: 138.8 kB / 475.4 MB, free: 6.734 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.4407, allocations: 0 / 475.4 MB, free: 6.734 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.4408, allocations: 3.953 kB / 475.4 MB, free: 6.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.4408, allocations: 0 / 475.4 MB, free: 6.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006297/0.4414, allocations: 339 kB / 475.8 MB, free: 6.355 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002161/0.4417, allocations: 99.97 kB / 475.8 MB, free: 6.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.052e-05/0.4418, allocations: 50.62 kB / 475.9 MB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.4418, allocations: 4 kB / 475.9 MB, free: 6.168 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001508/0.442, allocations: 67.34 kB / 476 MB, free: 6.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.094e-06/0.442, allocations: 0 / 476 MB, free: 6.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003437/0.4423, allocations: 117.3 kB / 476.1 MB, free: 5.969 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.922e-05/0.4424, allocations: 132.6 kB / 476.2 MB, free: 5.809 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003791/0.4428, allocations: 224.5 kB / 476.4 MB, free: 5.582 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.4429, allocations: 33.64 kB / 476.5 MB, free: 5.543 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.443, allocations: 120.2 kB / 476.6 MB, free: 5.422 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.208e-05/0.443, allocations: 15.8 kB / 476.6 MB, free: 5.406 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.706e-06/0.443, allocations: 4 kB / 476.6 MB, free: 5.402 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.4432, allocations: 326.8 kB / 476.9 MB, free: 5.074 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.034e-05/0.4433, allocations: 20 kB / 476.9 MB, free: 5.055 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.4434, allocations: 66 kB / 477 MB, free: 4.969 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.672e-05/0.4435, allocations: 23.98 kB / 477 MB, free: 4.945 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4435, allocations: 4.031 kB / 477 MB, free: 4.941 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002619/0.4438, allocations: 101.4 kB / 477.1 MB, free: 4.836 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.4438, allocations: 15.92 kB / 477.1 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.4438, allocations: 0 / 477.1 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.4438, allocations: 7.953 kB / 477.2 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.444, allocations: 8 kB / 477.2 MB, free: 4.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.444, allocations: 4 kB / 477.2 MB, free: 4.801 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.4441, allocations: 7.984 kB / 477.2 MB, free: 4.793 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.4441, allocations: 8.125 kB / 477.2 MB, free: 4.785 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 9.839e-05/0.4443, allocations: 108.9 kB / 477.3 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002692/0.4445, allocations: 117.5 kB / 477.4 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.788e-05/0.4446, allocations: 19.77 kB / 477.4 MB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002697/0.4449, allocations: 107.4 kB / 477.5 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.4449, allocations: 0 / 477.5 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4449, allocations: 0 / 477.5 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.4449, allocations: 0 / 477.5 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.4452, allocations: 210.2 kB / 477.7 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4452, allocations: 0 / 477.7 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.999e-05/0.4453, allocations: 4 kB / 477.7 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.4453, allocations: 0 / 477.7 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.4453, allocations: 11.94 kB / 477.7 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.4453, allocations: 3.953 kB / 477.8 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.4454, allocations: 0 / 477.8 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003221/0.4457, allocations: 185.8 kB / 477.9 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.4458, allocations: 112.9 kB / 478 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.725e-05/0.4459, allocations: 3.984 kB / 478 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.446, allocations: 4 kB / 478.1 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/0.4461, allocations: 15.97 kB / 478.1 MB, free: 3.789 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.4461, allocations: 4 kB / 478.1 MB, free: 3.785 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002701/0.4464, allocations: 184.5 kB / 478.3 MB, free: 3.602 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4464, allocations: 0 / 478.3 MB, free: 3.602 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004638/0.4469, allocations: 32 kB / 478.3 MB, free: 3.57 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.001866/0.4488, allocations: 1.104 MB / 479.4 MB, free: 2.512 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002593/0.449, allocations: 63.92 kB / 479.4 MB, free: 2.449 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4491, allocations: 0 / 479.4 MB, free: 2.449 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.453e-05/0.4491, allocations: 28.19 kB / 479.5 MB, free: 2.422 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005115/0.4497, allocations: 56.84 kB / 479.5 MB, free: 2.371 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.4507, allocations: 285.7 kB / 479.8 MB, free: 2.047 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000566/0.4513, allocations: 0.7321 MB / 480.5 MB, free: 1.289 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.4514, allocations: 25.2 kB / 480.6 MB, free: 1.262 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.4516, allocations: 47.41 kB / 480.6 MB, free: 1.215 MB / 346.7 MB Notification: Performance of SimCode: time 5.01e-07/0.4516, allocations: 0 / 480.6 MB, free: 1.215 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.4778, allocations: 3.629 MB / 484.2 MB, free: 13.6 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002712/0.4781, allocations: 185.5 kB / 484.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/2.195, allocations: 0 / 484.4 MB, free: 13.41 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat does not exist to compare? outputFormat=mat