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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 114.9 kB / 17.74 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001752/0.001752, allocations: 188.4 kB / 18.67 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 43.94 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2568, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.00331/0.2601, allocations: 1.88 MB / 403.3 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.2619, allocations: 1.044 MB / 404.3 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.262, allocations: 11.94 kB / 404.3 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000639/0.2627, allocations: 147.5 kB / 404.5 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003274/0.2631, allocations: 111.6 kB / 404.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006185/0.2637, allocations: 201.7 kB / 404.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002849/0.264, allocations: 183.4 kB / 405 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.2641, allocations: 37.55 kB / 405 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.2643, allocations: 75.69 kB / 405.1 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.2644, allocations: 71.69 kB / 405.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.033e-05/0.2645, allocations: 11.94 kB / 405.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.2646, allocations: 43.98 kB / 405.2 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.223e-05/0.2647, allocations: 47.83 kB / 405.2 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.894e-05/0.2648, allocations: 67.55 kB / 405.3 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003223/0.2651, allocations: 216.4 kB / 405.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2651, allocations: 0 / 405.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2651, allocations: 0 / 405.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.034e-06/0.2651, allocations: 0 / 405.5 MB, free: 4.73 MB / 318.1 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.0007839/0.2659, allocations: 0.504 MB / 406 MB, free: 4.172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.266, allocations: 15.89 kB / 406 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.718e-05/0.266, allocations: 20.66 kB / 406.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00039/0.2664, allocations: 266.8 kB / 406.3 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.2665, allocations: 8.375 kB / 406.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.2665, allocations: 12.06 kB / 406.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003493/0.2669, allocations: 144.5 kB / 406.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.2669, allocations: 4 kB / 406.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.2669, allocations: 0 / 406.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.2669, allocations: 0 / 406.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.267, allocations: 39.92 kB / 406.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005097/0.2675, allocations: 354.4 kB / 406.9 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.2678, allocations: 107.9 kB / 407 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.659e-05/0.2679, allocations: 46.56 kB / 407 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.2679, allocations: 8 kB / 407 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.2681, allocations: 79.3 kB / 407.1 MB, free: 2.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.894e-06/0.2681, allocations: 0 / 407.1 MB, free: 2.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004049/0.2685, allocations: 141.4 kB / 407.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.231e-05/0.2686, allocations: 136.6 kB / 407.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.2689, allocations: 269 kB / 407.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.269, allocations: 25.7 kB / 407.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.442e-05/0.2691, allocations: 120 kB / 407.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.2691, allocations: 11.89 kB / 407.8 MB, free: 2.172 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.674e-05/0.2692, allocations: 33.62 kB / 407.8 MB, free: 2.133 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.2693, allocations: 334.8 kB / 408.2 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.433e-05/0.2694, allocations: 23.98 kB / 408.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.184e-05/0.2695, allocations: 66 kB / 408.2 MB, free: 1.688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001442/0.2696, allocations: 76.22 kB / 408.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.2696, allocations: 4.281 kB / 408.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002161/0.2699, allocations: 113.4 kB / 408.4 MB, free: 1.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.2699, allocations: 7.984 kB / 408.4 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2699, allocations: 0 / 408.4 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.2699, allocations: 4 kB / 408.4 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.864e-05/0.27, allocations: 15.94 kB / 408.5 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.27, allocations: 4 kB / 408.5 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.914e-05/0.2701, allocations: 15.86 kB / 408.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.2701, allocations: 8.125 kB / 408.5 MB, free: 1.422 MB / 318.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.2703, allocations: 141.8 kB / 408.6 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.731e-05/0.2704, allocations: 65.36 kB / 408.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.503e-05/0.2704, allocations: 25.7 kB / 408.7 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2705, allocations: 0 / 408.7 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.2705, allocations: 0 / 408.7 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.2705, allocations: 3.938 kB / 408.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002247/0.2707, allocations: 221.6 kB / 408.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.2707, allocations: 4.062 kB / 408.9 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.134e-05/0.2708, allocations: 7.984 kB / 408.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.2708, allocations: 0 / 408.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.2708, allocations: 11.88 kB / 409 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2708, allocations: 0 / 409 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2708, allocations: 0 / 409 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.2711, allocations: 158.5 kB / 409.1 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.2712, allocations: 108.8 kB / 409.2 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.873e-05/0.2712, allocations: 8 kB / 409.2 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.134e-05/0.2713, allocations: 3.938 kB / 409.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.083e-05/0.2713, allocations: 7.984 kB / 409.2 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.2714, allocations: 12 kB / 409.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002104/0.2716, allocations: 196.5 kB / 409.4 MB, free: 364 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2716, allocations: 0 / 409.4 MB, free: 364 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002844/0.2719, allocations: 31.91 kB / 409.5 MB, free: 332 kB / 318.1 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001026/0.2729, allocations: 428 kB / 409.9 MB, free: 60 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002348/0.2732, allocations: 63.97 kB / 410 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2732, allocations: 0 / 410 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.357e-05/0.2733, allocations: 27.88 kB / 410 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.2737, allocations: 59.92 kB / 410 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005308/0.2742, allocations: 338.7 kB / 410.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.2745, allocations: 0.7279 MB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.2746, allocations: 23.42 kB / 411.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2746, allocations: 0 / 411.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of Templates: time 0.005048/0.2796, allocations: 2.603 MB / 413.7 MB, free: 12.18 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches