Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample",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.001005/0.001005, allocations: 177.1 kB / 8.35 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.374/1.374, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.000851/0.000851, allocations: 88.38 kB / 281.1 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.737e-05/1.74e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1135, allocations: 50.41 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3331/0.4466, allocations: 80.35 MB / 467.9 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.4469, allocations: 79.95 kB / 468 MB, free: 14.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01773/0.4647, allocations: 6.494 MB / 474.5 MB, free: 7.797 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4647, allocations: 0 / 474.5 MB, free: 7.797 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.82e-05/0.4647, allocations: 4 kB / 474.5 MB, free: 7.793 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.0005492/0.4653, allocations: 484.4 kB / 475 MB, free: 7.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.4653, allocations: 11.97 kB / 475 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.152e-05/0.4654, allocations: 19.81 kB / 475 MB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003627/0.4658, allocations: 257.7 kB / 475.2 MB, free: 6.949 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.4658, allocations: 8 kB / 475.2 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.4658, allocations: 4 kB / 475.2 MB, free: 6.938 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.88e-05/0.4659, allocations: 39.92 kB / 475.3 MB, free: 6.898 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002353/0.4662, allocations: 126.8 kB / 475.4 MB, free: 6.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.964e-06/0.4662, allocations: 0 / 475.4 MB, free: 6.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.4662, allocations: 11.95 kB / 475.4 MB, free: 6.738 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.4662, allocations: 0 / 475.4 MB, free: 6.738 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004295/0.4666, allocations: 331.1 kB / 475.7 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/0.4668, allocations: 107.9 kB / 475.9 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.711e-05/0.4669, allocations: 42.69 kB / 475.9 MB, free: 6.188 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.4669, allocations: 4.062 kB / 475.9 MB, free: 6.184 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001159/0.467, allocations: 79.28 kB / 476 MB, free: 6.094 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.714e-06/0.467, allocations: 0 / 476 MB, free: 6.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002435/0.4673, allocations: 109.3 kB / 476.1 MB, free: 5.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.4674, allocations: 137.3 kB / 476.2 MB, free: 5.816 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002391/0.4676, allocations: 228.4 kB / 476.4 MB, free: 5.586 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.4676, allocations: 25.7 kB / 476.5 MB, free: 5.555 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.58e-05/0.4677, allocations: 120.2 kB / 476.6 MB, free: 5.434 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.4678, allocations: 19.8 kB / 476.6 MB, free: 5.414 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.479e-06/0.4678, allocations: 0 / 476.6 MB, free: 5.414 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4679, allocations: 322.8 kB / 476.9 MB, free: 5.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.434e-05/0.468, allocations: 20 kB / 476.9 MB, free: 5.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.77e-05/0.468, allocations: 69.94 kB / 477 MB, free: 4.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.86e-05/0.4681, allocations: 32.02 kB / 477 MB, free: 4.949 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4681, allocations: 4 kB / 477 MB, free: 4.945 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001541/0.4683, allocations: 93.44 kB / 477.1 MB, free: 4.848 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.4683, allocations: 9.078 kB / 477.1 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.4683, allocations: 4 kB / 477.1 MB, free: 4.836 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.4683, allocations: 8.078 kB / 477.2 MB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.394e-05/0.4684, allocations: 19.94 kB / 477.2 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.4684, allocations: 0 / 477.2 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.132e-05/0.4685, allocations: 7.984 kB / 477.2 MB, free: 4.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.4685, allocations: 4 kB / 477.2 MB, free: 4.797 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,superSample1.y,superSample1.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 7.946e-05/0.4686, allocations: 105 kB / 477.3 MB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001723/0.4688, allocations: 113.3 kB / 477.4 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.163e-05/0.4688, allocations: 19.83 kB / 477.4 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001765/0.469, allocations: 115.4 kB / 477.5 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.469, allocations: 4 kB / 477.5 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.469, allocations: 0 / 477.5 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.21e-05/0.4691, allocations: 0 / 477.5 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/0.4693, allocations: 206.1 kB / 477.7 MB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4693, allocations: 0 / 477.7 MB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.508e-05/0.4693, allocations: 8 kB / 477.7 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.4693, allocations: 0 / 477.7 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.4693, allocations: 8 kB / 477.7 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.4694, allocations: 3.953 kB / 477.8 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4694, allocations: 12.05 kB / 477.8 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002066/0.4696, allocations: 178 kB / 477.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.4697, allocations: 116.9 kB / 478.1 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/0.4697, allocations: 3.984 kB / 478.1 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.708e-05/0.4698, allocations: 8 kB / 478.1 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.252e-05/0.4699, allocations: 11.98 kB / 478.1 MB, free: 3.793 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.497e-06/0.4699, allocations: 4 kB / 478.1 MB, free: 3.789 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001697/0.47, allocations: 180.5 kB / 478.3 MB, free: 3.609 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.176e-06/0.4701, allocations: 0 / 478.3 MB, free: 3.609 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000253/0.4703, allocations: 35.94 kB / 478.3 MB, free: 3.574 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,superSample1.y,sample1.y,superSample1.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.001194/0.4715, allocations: 1.099 MB / 479.4 MB, free: 2.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001797/0.4717, allocations: 63.92 kB / 479.5 MB, free: 2.457 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.4717, allocations: 0 / 479.5 MB, free: 2.457 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.353e-05/0.4718, allocations: 27.94 kB / 479.5 MB, free: 2.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003309/0.4721, allocations: 57.73 kB / 479.5 MB, free: 2.375 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005567/0.4727, allocations: 278.2 kB / 479.8 MB, free: 2.059 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.473, allocations: 0.7358 MB / 480.5 MB, free: 1.297 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.881e-05/0.4731, allocations: 21.2 kB / 480.6 MB, free: 1.273 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.37e-05/0.4732, allocations: 47.41 kB / 480.6 MB, free: 1.227 MB / 346.7 MB Notification: Performance of SimCode: time 1.643e-06/0.4732, allocations: 3.938 kB / 480.6 MB, free: 1.223 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.4962, allocations: 3.636 MB / 484.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002585/0.4965, allocations: 180.1 kB / 484.4 MB, free: 13.42 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.608/2.105, allocations: 0 / 484.4 MB, free: 13.42 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SuperSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SuperSample_res.mat does not exist to compare? outputFormat=mat