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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 112.2 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 225.6 MB / 250.8 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] 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=5013,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=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 55.91 kB / 368.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3403, allocations: 52.13 MB / 420.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004079/0.3444, allocations: 1.905 MB / 422.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.3467, allocations: 1.145 MB / 423.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001781/0.3468, allocations: 0 / 423.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003751/0.3472, allocations: 71.61 kB / 424 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003217/0.3475, allocations: 95.58 kB / 424.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009823/0.3485, allocations: 262.8 kB / 424.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003111/0.3488, allocations: 175.5 kB / 424.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.349, allocations: 17.56 kB / 424.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.3491, allocations: 79.67 kB / 424.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.3492, allocations: 79.67 kB / 424.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.3493, allocations: 8 kB / 424.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.3495, allocations: 67.91 kB / 424.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.3496, allocations: 55.81 kB / 424.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.679e-05/0.3497, allocations: 75.48 kB / 424.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004113/0.3501, allocations: 232.2 kB / 425.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3501, allocations: 0 / 425.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3501, allocations: 0 / 425.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.3501, allocations: 0 / 425.1 MB, free: 10.84 MB / 334.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.0008708/0.351, allocations: 0.5426 MB / 425.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.351, allocations: 15.89 kB / 425.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.703e-05/0.3511, allocations: 24.8 kB / 425.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005049/0.3516, allocations: 295.8 kB / 426 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.3516, allocations: 384 / 426 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/0.3516, allocations: 16.12 kB / 426 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003842/0.352, allocations: 155.6 kB / 426.1 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.352, allocations: 4 kB / 426.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.352, allocations: 0 / 426.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.352, allocations: 0 / 426.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.3522, allocations: 47.89 kB / 426.2 MB, free: 9.629 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006146/0.3528, allocations: 382.3 kB / 426.6 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002653/0.353, allocations: 111.9 kB / 426.7 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.472e-05/0.3531, allocations: 46.5 kB / 426.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.3532, allocations: 7.984 kB / 426.7 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001883/0.3534, allocations: 75.45 kB / 426.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.3534, allocations: 0 / 426.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000441/0.3538, allocations: 157.6 kB / 427 MB, free: 8.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.3539, allocations: 162.2 kB / 427.1 MB, free: 8.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003984/0.3543, allocations: 326.7 kB / 427.4 MB, free: 8.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.3543, allocations: 29.7 kB / 427.5 MB, free: 8.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.3544, allocations: 128 kB / 427.6 MB, free: 8.066 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.734e-05/0.3545, allocations: 15.91 kB / 427.6 MB, free: 8.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-05/0.3545, allocations: 37.66 kB / 427.6 MB, free: 8.008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.3547, allocations: 334.8 kB / 428 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.414e-05/0.3548, allocations: 23.98 kB / 428 MB, free: 7.648 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.3549, allocations: 86.84 kB / 428.1 MB, free: 7.539 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.3551, allocations: 88.16 kB / 428.2 MB, free: 7.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.3551, allocations: 0 / 428.2 MB, free: 7.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002503/0.3554, allocations: 117.5 kB / 428.3 MB, free: 7.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.3554, allocations: 8 kB / 428.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.3554, allocations: 3.984 kB / 428.3 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.3554, allocations: 4.125 kB / 428.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.3555, allocations: 20.25 kB / 428.3 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.3555, allocations: 4 kB / 428.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.3556, allocations: 27.81 kB / 428.3 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.3557, allocations: 4 kB / 428.3 MB, free: 7.246 MB / 334.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.0002051/0.3559, allocations: 153.8 kB / 428.5 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.356, allocations: 69.48 kB / 428.6 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003275/0.3563, allocations: 119.4 kB / 428.7 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.3563, allocations: 0 / 428.7 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3563, allocations: 0 / 428.7 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.584e-05/0.3563, allocations: 11.92 kB / 428.7 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002435/0.3566, allocations: 233.5 kB / 428.9 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3566, allocations: 4 kB / 428.9 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.486e-05/0.3566, allocations: 8 kB / 428.9 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3566, allocations: 0 / 428.9 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.3566, allocations: 7.984 kB / 428.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.3566, allocations: 0 / 428.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3566, allocations: 0 / 428.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002961/0.3569, allocations: 174.5 kB / 429.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.3571, allocations: 113 kB / 429.2 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.645e-05/0.3571, allocations: 4 kB / 429.2 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.804e-05/0.3572, allocations: 7.984 kB / 429.2 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.343e-05/0.3572, allocations: 7.984 kB / 429.2 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.3573, allocations: 11.94 kB / 429.3 MB, free: 6.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002731/0.3575, allocations: 241.9 kB / 429.5 MB, free: 5.988 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3575, allocations: 0 / 429.5 MB, free: 5.988 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002934/0.3578, allocations: 35.94 kB / 429.5 MB, free: 5.953 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.001654/0.3595, allocations: 429.7 kB / 429.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000275/0.3597, allocations: 64.09 kB / 430 MB, free: 5.625 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3597, allocations: 4.062 kB / 430 MB, free: 5.621 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.3599, allocations: 27.98 kB / 430 MB, free: 5.594 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004461/0.3603, allocations: 72.34 kB / 430.1 MB, free: 5.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007195/0.361, allocations: 369 kB / 430.5 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.3614, allocations: 0.7438 MB / 431.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.489e-05/0.3615, allocations: 33.47 kB / 431.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.961e-05/0.3616, allocations: 19.44 kB / 431.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3616, allocations: 0 / 431.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of Templates: time 0.00793/0.3695, allocations: 2.835 MB / 434.1 MB, free: 1.496 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.067964295856655]