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/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.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 110.9 kB / 17.74 MB, free: 5.352 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.001506/0.001506, allocations: 192.5 kB / 18.67 MB, free: 4.426 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.504/1.504, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 47.94 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4345/0.4357, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003534/0.4393, allocations: 1.858 MB / 403.3 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.4412, allocations: 1.13 MB / 404.4 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.4413, allocations: 7.938 kB / 404.4 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003484/0.4417, allocations: 63.72 kB / 404.5 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002598/0.442, allocations: 91.58 kB / 404.6 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007332/0.4427, allocations: 262.1 kB / 404.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.443, allocations: 163.6 kB / 405 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.4431, allocations: 33.53 kB / 405 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.4432, allocations: 75.7 kB / 405.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.4434, allocations: 75.62 kB / 405.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.122e-05/0.4434, allocations: 11.98 kB / 405.2 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.4436, allocations: 67.95 kB / 405.2 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.172e-05/0.4437, allocations: 47.83 kB / 405.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.58e-05/0.4438, allocations: 79.42 kB / 405.4 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003011/0.4441, allocations: 231.1 kB / 405.6 MB, free: 4.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.4441, allocations: 4 kB / 405.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4441, allocations: 0 / 405.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.4441, allocations: 0 / 405.6 MB, free: 4.703 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.0007165/0.4448, allocations: 0.5324 MB / 406.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.4449, allocations: 15.83 kB / 406.1 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.957e-05/0.4449, allocations: 24.66 kB / 406.2 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00042/0.4454, allocations: 291.5 kB / 406.4 MB, free: 3.754 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.4454, allocations: 4.375 kB / 406.4 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.4454, allocations: 16.11 kB / 406.5 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003434/0.4458, allocations: 151.6 kB / 406.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.4458, allocations: 3.984 kB / 406.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.4458, allocations: 0 / 406.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.4458, allocations: 0 / 406.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.4459, allocations: 39.92 kB / 406.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005099/0.4465, allocations: 378.4 kB / 407 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000239/0.4467, allocations: 115.9 kB / 407.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.669e-05/0.4468, allocations: 54.55 kB / 407.2 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.4468, allocations: 0 / 407.2 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/0.447, allocations: 79.33 kB / 407.3 MB, free: 2.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 2.705e-06/0.447, allocations: 4 kB / 407.3 MB, free: 2.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003874/0.4474, allocations: 161.2 kB / 407.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.4475, allocations: 158.2 kB / 407.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.4478, allocations: 322.7 kB / 407.9 MB, free: 2.113 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.4479, allocations: 33.7 kB / 407.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.281e-05/0.448, allocations: 128 kB / 408.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/0.448, allocations: 24.06 kB / 408.1 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.289e-05/0.4481, allocations: 33.7 kB / 408.1 MB, free: 1.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.4482, allocations: 334.8 kB / 408.4 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.146e-05/0.4483, allocations: 23.98 kB / 408.5 MB, free: 1.523 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.4484, allocations: 90.73 kB / 408.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.4485, allocations: 84.22 kB / 408.6 MB, free: 1.312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4486, allocations: 0 / 408.6 MB, free: 1.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002425/0.4488, allocations: 129.4 kB / 408.8 MB, free: 1.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.4488, allocations: 8.031 kB / 408.8 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.4488, allocations: 0 / 408.8 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.4489, allocations: 4 kB / 408.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.449, allocations: 19.98 kB / 408.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.449, allocations: 0 / 408.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.909e-05/0.4491, allocations: 11.84 kB / 408.8 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.4491, allocations: 4 kB / 408.8 MB, free: 1.133 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,table.y,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.0001446/0.4492, allocations: 157.8 kB / 409 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.621e-05/0.4493, allocations: 69.41 kB / 409 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.702e-05/0.4494, allocations: 25.7 kB / 409 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.4494, allocations: 4 kB / 409.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.4494, allocations: 0 / 409.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.4494, allocations: 7.875 kB / 409.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.4497, allocations: 241.8 kB / 409.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.4497, allocations: 4 kB / 409.3 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.872e-05/0.4497, allocations: 19.92 kB / 409.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.4498, allocations: 0 / 409.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.4498, allocations: 4 kB / 409.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.4498, allocations: 4.062 kB / 409.3 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4498, allocations: 0 / 409.3 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002605/0.4501, allocations: 166.4 kB / 409.5 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.551e-05/0.4502, allocations: 112.9 kB / 409.6 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.202e-05/0.4502, allocations: 0 / 409.6 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.545e-05/0.4503, allocations: 12 kB / 409.6 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.4503, allocations: 7.984 kB / 409.6 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.4504, allocations: 7.938 kB / 409.6 MB, free: 200 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002435/0.4506, allocations: 245.9 kB / 409.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4506, allocations: 0 / 409.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002724/0.4509, allocations: 32 kB / 409.9 MB, free: 15.92 MB / 334.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,table.y,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.0009994/0.4519, allocations: 433.4 kB / 410.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002432/0.4522, allocations: 79.84 kB / 410.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4522, allocations: 0 / 410.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.161e-05/0.4523, allocations: 27.98 kB / 410.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.4527, allocations: 56.48 kB / 410.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000701/0.4534, allocations: 399.1 kB / 410.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.4537, allocations: 0.7436 MB / 411.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.905e-05/0.4538, allocations: 19.44 kB / 411.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4538, allocations: 0 / 411.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of Templates: time 0.006117/0.4599, allocations: 2.896 MB / 414.5 MB, free: 11.39 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches