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.001816/0.001824, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.002214/0.002214, allocations: 188.4 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.109/3.109, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 44.02 kB / 352 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7266/0.7287, allocations: 49.44 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.007269/0.7361, allocations: 1.883 MB / 403.3 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004132/0.7403, allocations: 1.052 MB / 404.3 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004028/0.7407, allocations: 0 / 404.3 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001392/0.7423, allocations: 147.5 kB / 404.5 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007619/0.743, allocations: 117.6 kB / 404.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001158/0.7442, allocations: 201.8 kB / 404.8 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004887/0.7447, allocations: 179.6 kB / 405 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.7449, allocations: 33.53 kB / 405 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001893/0.7451, allocations: 87.56 kB / 405.1 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.7453, allocations: 63.7 kB / 405.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.234e-05/0.7454, allocations: 12 kB / 405.2 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002437/0.7456, allocations: 55.95 kB / 405.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.7458, allocations: 43.78 kB / 405.3 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.7459, allocations: 71.53 kB / 405.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004703/0.7464, allocations: 200.5 kB / 405.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.7464, allocations: 0 / 405.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.7464, allocations: 0 / 405.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.7464, allocations: 0 / 405.5 MB, free: 4.758 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.001071/0.7475, allocations: 0.5079 MB / 406 MB, free: 4.195 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.918e-05/0.7476, allocations: 11.89 kB / 406 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.834e-05/0.7477, allocations: 24.66 kB / 406.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005115/0.7482, allocations: 266.8 kB / 406.3 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.7483, allocations: 8.375 kB / 406.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.7483, allocations: 8.125 kB / 406.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004595/0.7488, allocations: 150.7 kB / 406.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.7488, allocations: 0 / 406.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.899e-05/0.7488, allocations: 4 kB / 406.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.7488, allocations: 3.938 kB / 406.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001394/0.749, allocations: 27.98 kB / 406.5 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009886/0.75, allocations: 366.4 kB / 406.9 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.7503, allocations: 103.9 kB / 407 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.7504, allocations: 46.56 kB / 407 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.102e-05/0.7505, allocations: 4 kB / 407 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.7507, allocations: 79.22 kB / 407.1 MB, free: 2.945 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 2.325e-06/0.7507, allocations: 0 / 407.1 MB, free: 2.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005498/0.7513, allocations: 149.4 kB / 407.3 MB, free: 2.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.7514, allocations: 128.5 kB / 407.4 MB, free: 2.637 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004764/0.7519, allocations: 261 kB / 407.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.752, allocations: 29.7 kB / 407.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.7521, allocations: 116 kB / 407.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.838e-05/0.7522, allocations: 11.91 kB / 407.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.948e-05/0.7523, allocations: 37.86 kB / 407.8 MB, free: 2.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002283/0.7526, allocations: 330.8 kB / 408.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.7527, allocations: 23.98 kB / 408.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.7529, allocations: 77.94 kB / 408.2 MB, free: 1.707 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/0.7532, allocations: 76.25 kB / 408.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.7532, allocations: 0 / 408.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003891/0.7536, allocations: 109.4 kB / 408.4 MB, free: 1.504 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.7536, allocations: 11.94 kB / 408.4 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.7537, allocations: 4.125 kB / 408.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.689e-05/0.7537, allocations: 4 kB / 408.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.7539, allocations: 15.98 kB / 408.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.849e-05/0.7539, allocations: 4 kB / 408.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.754, allocations: 11.88 kB / 408.5 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.7541, allocations: 4 kB / 408.5 MB, free: 1.449 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.0002339/0.7543, allocations: 145.8 kB / 408.6 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.7545, allocations: 61.41 kB / 408.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.949e-05/0.7546, allocations: 25.78 kB / 408.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.7546, allocations: 7.984 kB / 408.7 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.7546, allocations: 0 / 408.7 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.7546, allocations: 3.938 kB / 408.7 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003574/0.755, allocations: 217.9 kB / 408.9 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.755, allocations: 7.984 kB / 408.9 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.883e-05/0.7551, allocations: 15.88 kB / 409 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.7551, allocations: 0 / 409 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.7551, allocations: 4 kB / 409 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.7552, allocations: 3.984 kB / 409 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7552, allocations: 4 kB / 409 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004461/0.7556, allocations: 154.5 kB / 409.1 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001744/0.7558, allocations: 104.8 kB / 409.2 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.675e-05/0.7559, allocations: 7.984 kB / 409.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.756, allocations: 4 kB / 409.2 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.7561, allocations: 8 kB / 409.2 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.593e-05/0.7562, allocations: 11.92 kB / 409.3 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004065/0.7566, allocations: 188.5 kB / 409.4 MB, free: 392 kB / 318.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7566, allocations: 0 / 409.4 MB, free: 392 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.000483/0.7571, allocations: 39.89 kB / 409.5 MB, free: 352 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.001858/0.759, allocations: 420.3 kB / 409.9 MB, free: 88 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004014/0.7594, allocations: 75.91 kB / 410 MB, free: 12 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.7594, allocations: 0 / 410 MB, free: 12 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.7596, allocations: 31.97 kB / 410 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007096/0.7603, allocations: 56.36 kB / 410.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.7614, allocations: 330.8 kB / 410.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005878/0.762, allocations: 0.7322 MB / 411.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.51e-05/0.7621, allocations: 19.44 kB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of SimCode: time 1.302e-06/0.7622, allocations: 0 / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of Templates: time 0.01039/0.7726, allocations: 2.609 MB / 413.7 MB, free: 12.19 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