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.001186/0.001186, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001276/0.001277, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.554/1.554, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 51.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.394, allocations: 49.42 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004259/0.3983, allocations: 1.883 MB / 402.6 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00278/0.4011, allocations: 1.13 MB / 403.7 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.4012, allocations: 3.938 kB / 403.7 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00042/0.4017, allocations: 63.73 kB / 403.8 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004012/0.4021, allocations: 95.58 kB / 403.9 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007353/0.4028, allocations: 258.1 kB / 404.1 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.4031, allocations: 167.5 kB / 404.3 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.4032, allocations: 33.53 kB / 404.3 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.4033, allocations: 67.7 kB / 404.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.4034, allocations: 79.62 kB / 404.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.4035, allocations: 12 kB / 404.5 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/0.4037, allocations: 67.95 kB / 404.5 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.723e-05/0.4038, allocations: 51.83 kB / 404.6 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.472e-05/0.4039, allocations: 79.41 kB / 404.7 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.4042, allocations: 230.9 kB / 404.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.4042, allocations: 0 / 404.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4043, allocations: 0 / 404.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.4043, allocations: 0 / 404.9 MB, free: 4.672 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.0007024/0.405, allocations: 0.5349 MB / 405.4 MB, free: 4.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.405, allocations: 15.83 kB / 405.5 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.417e-05/0.4051, allocations: 28.8 kB / 405.5 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004747/0.4056, allocations: 287.8 kB / 405.8 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.4056, allocations: 8.375 kB / 405.8 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.4057, allocations: 8.125 kB / 405.8 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004287/0.4061, allocations: 155.6 kB / 405.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.4061, allocations: 0 / 405.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.4061, allocations: 4 kB / 405.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.4061, allocations: 4 kB / 405.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001231/0.4063, allocations: 35.91 kB / 406 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006735/0.407, allocations: 398.3 kB / 406.4 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/0.4074, allocations: 115.9 kB / 406.5 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.4075, allocations: 50.55 kB / 406.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.4075, allocations: 3.984 kB / 406.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000191/0.4077, allocations: 79.33 kB / 406.6 MB, free: 2.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.412e-06/0.4077, allocations: 0 / 406.6 MB, free: 2.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.000424/0.4081, allocations: 153.5 kB / 406.8 MB, free: 2.586 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.718e-05/0.4083, allocations: 162.2 kB / 406.9 MB, free: 2.391 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/0.4086, allocations: 326.6 kB / 407.2 MB, free: 2.062 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.4086, allocations: 29.7 kB / 407.3 MB, free: 2.027 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.762e-05/0.4087, allocations: 128.1 kB / 407.4 MB, free: 1.898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.4087, allocations: 11.91 kB / 407.4 MB, free: 1.887 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.284e-05/0.4088, allocations: 37.66 kB / 407.4 MB, free: 1.844 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.409, allocations: 342.9 kB / 407.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.8e-05/0.409, allocations: 23.98 kB / 407.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.4092, allocations: 90.72 kB / 407.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001614/0.4093, allocations: 84.22 kB / 408 MB, free: 1.266 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.4093, allocations: 0 / 408 MB, free: 1.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002239/0.4096, allocations: 125.4 kB / 408.1 MB, free: 1.137 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.4096, allocations: 4 kB / 408.1 MB, free: 1.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.4096, allocations: 4 kB / 408.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.4096, allocations: 4.125 kB / 408.1 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.4098, allocations: 16 kB / 408.1 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.4098, allocations: 3.984 kB / 408.1 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.776e-05/0.4099, allocations: 19.83 kB / 408.1 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.4099, allocations: 4 kB / 408.1 MB, free: 1.082 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.0001412/0.41, allocations: 154.1 kB / 408.3 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.4101, allocations: 65.55 kB / 408.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.693e-05/0.4102, allocations: 33.77 kB / 408.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.4102, allocations: 4 kB / 408.4 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.4103, allocations: 0 / 408.4 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.4103, allocations: 7.938 kB / 408.4 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003033/0.4106, allocations: 233.6 kB / 408.6 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.4106, allocations: 4 kB / 408.6 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.161e-05/0.4107, allocations: 15.92 kB / 408.6 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.4107, allocations: 0 / 408.6 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.4107, allocations: 4 kB / 408.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4107, allocations: 0 / 408.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.4107, allocations: 0 / 408.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002684/0.411, allocations: 174.5 kB / 408.8 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.074e-05/0.4111, allocations: 112.9 kB / 408.9 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.085e-05/0.4111, allocations: 8 kB / 408.9 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.361e-05/0.4112, allocations: 0 / 408.9 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/0.4113, allocations: 11.92 kB / 409 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.4113, allocations: 16.03 kB / 409 MB, free: 148 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002354/0.4115, allocations: 245.9 kB / 409.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4116, allocations: 0 / 409.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002566/0.4118, allocations: 35.94 kB / 409.2 MB, free: 15.87 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.001437/0.4133, allocations: 421.6 kB / 409.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002861/0.4136, allocations: 72.03 kB / 409.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.4136, allocations: 4.062 kB / 409.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.4137, allocations: 31.92 kB / 409.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005617/0.4143, allocations: 73.77 kB / 409.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007209/0.415, allocations: 360.7 kB / 410.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.4154, allocations: 0.7399 MB / 410.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.867e-05/0.4155, allocations: 29.52 kB / 411 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.4156, allocations: 27.42 kB / 411 MB, free: 14.23 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.4157, allocations: 0 / 411 MB, free: 14.23 MB / 334.1 MB Notification: Performance of Templates: time 0.00654/0.4222, allocations: 2.813 MB / 413.8 MB, free: 11.44 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/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