Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00397/0.00397, allocations: 160 kB / 24.7 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8742/0.8742, allocations: 177.1 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.655e-06/2.655e-06, allocations: 0 / 325.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.582e-05/2.847e-05, allocations: 2.281 kB / 325.8 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002392/0.002421, allocations: 1.892 MB / 327.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.004233, allocations: 1.21 MB / 328.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.004366, allocations: 7.938 kB / 328.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003154/0.004681, allocations: 59.72 kB / 329 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003404/0.005022, allocations: 147.2 kB / 329.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000526/0.005548, allocations: 230.4 kB / 329.4 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002129/0.005761, allocations: 179.5 kB / 329.5 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.005867, allocations: 25.8 kB / 329.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.005984, allocations: 99.72 kB / 329.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.638e-05/0.00608, allocations: 71.8 kB / 329.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.0061, allocations: 8 kB / 329.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.006228, allocations: 75.88 kB / 329.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-05/0.0063, allocations: 51.77 kB / 329.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.797e-05/0.006348, allocations: 39.86 kB / 329.9 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002715/0.00662, allocations: 255.1 kB / 330.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.006622, allocations: 0 / 330.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.006623, allocations: 0 / 330.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.006627, allocations: 4 kB / 330.2 MB, free: 10.96 MB / 298.7 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.0005452/0.007173, allocations: 473.4 kB / 330.6 MB, free: 10.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.007209, allocations: 8.031 kB / 330.6 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.163e-05/0.00726, allocations: 28.78 kB / 330.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.00753, allocations: 228.7 kB / 330.9 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.007544, allocations: 4.375 kB / 330.9 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.007557, allocations: 8.375 kB / 330.9 MB, free: 10.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002705/0.007828, allocations: 177 kB / 331.1 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.007837, allocations: 3.938 kB / 331.1 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.007848, allocations: 4 kB / 331.1 MB, free: 9.961 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.007853, allocations: 0 / 331.1 MB, free: 9.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.078e-05/0.007934, allocations: 43.91 kB / 331.1 MB, free: 9.918 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000335/0.008269, allocations: 314.1 kB / 331.4 MB, free: 9.574 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.008421, allocations: 123.8 kB / 331.5 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.099e-05/0.008472, allocations: 50.56 kB / 331.6 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.008491, allocations: 7.922 kB / 331.6 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001119/0.008602, allocations: 79.33 kB / 331.7 MB, free: 9.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.002e-06/0.008603, allocations: 0 / 331.7 MB, free: 9.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002584/0.008862, allocations: 161.6 kB / 331.8 MB, free: 9.105 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.728e-05/0.008919, allocations: 136.5 kB / 332 MB, free: 8.941 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.009145, allocations: 333.9 kB / 332.3 MB, free: 8.602 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/0.009158, allocations: 29.95 kB / 332.3 MB, free: 8.566 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.624e-05/0.009224, allocations: 132.1 kB / 332.4 MB, free: 8.434 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-05/0.009245, allocations: 19.89 kB / 332.5 MB, free: 8.414 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.264e-05/0.009278, allocations: 21.72 kB / 332.5 MB, free: 8.387 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.851e-05/0.009366, allocations: 330.8 kB / 332.8 MB, free: 8.055 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.901e-05/0.009405, allocations: 24.05 kB / 332.8 MB, free: 8.031 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.979e-05/0.009475, allocations: 118.8 kB / 332.9 MB, free: 7.891 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.012e-05/0.009555, allocations: 69.58 kB / 333 MB, free: 7.816 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.009557, allocations: 0 / 333 MB, free: 7.816 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001149/0.009672, allocations: 113.5 kB / 333.1 MB, free: 7.699 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.009685, allocations: 4 kB / 333.1 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.009689, allocations: 4 kB / 333.1 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.0097, allocations: 0 / 333.1 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.953e-05/0.009759, allocations: 11.98 kB / 333.1 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.009765, allocations: 4 kB / 333.2 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.662e-05/0.009802, allocations: 4 kB / 333.2 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.009811, allocations: 4 kB / 333.2 MB, free: 7.668 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 9.46e-05/0.009905, allocations: 154.7 kB / 333.3 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.296e-05/0.009958, allocations: 73.52 kB / 333.4 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.01012, allocations: 123.5 kB / 333.5 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.01012, allocations: 0 / 333.5 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.01013, allocations: 4 kB / 333.5 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.01013, allocations: 0 / 333.5 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.01024, allocations: 185.1 kB / 333.7 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.01024, allocations: 3.938 kB / 333.7 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.569e-05/0.01028, allocations: 15.98 kB / 333.7 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.01028, allocations: 0 / 333.7 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.01029, allocations: 11.92 kB / 333.7 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.01029, allocations: 8.125 kB / 333.7 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.01029, allocations: 0 / 333.7 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001487/0.01044, allocations: 178.5 kB / 333.9 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.775e-05/0.01049, allocations: 35.84 kB / 333.9 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.01051, allocations: 7.984 kB / 333.9 MB, free: 6.812 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.958e-05/0.01054, allocations: 4 kB / 333.9 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.01058, allocations: 11.98 kB / 334 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.01059, allocations: 4 kB / 334 MB, free: 6.793 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00016/0.01075, allocations: 249.2 kB / 334.2 MB, free: 6.555 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01075, allocations: 0 / 334.2 MB, free: 6.555 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001592/0.01091, allocations: 35.94 kB / 334.2 MB, free: 6.52 MB / 298.7 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 (10): * Single equations (assignments): 8 * 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.0006911/0.0116, allocations: 456 kB / 334.7 MB, free: 6.246 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001446/0.01175, allocations: 67.91 kB / 334.8 MB, free: 6.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01175, allocations: 0 / 334.8 MB, free: 6.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.513e-05/0.01179, allocations: 27.98 kB / 334.8 MB, free: 6.152 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002389/0.01203, allocations: 62.81 kB / 334.8 MB, free: 6.094 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007082/0.01274, allocations: 426.2 kB / 335.3 MB, free: 5.641 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.99e-05/0.01283, allocations: 127.9 kB / 335.4 MB, free: 5.492 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.01287, allocations: 24.48 kB / 335.4 MB, free: 5.469 MB / 298.7 MB Notification: Performance of SimCode: time 8.11e-07/0.01287, allocations: 0 / 335.4 MB, free: 5.469 MB / 298.7 MB Notification: Performance of Templates: time 0.003206/0.01608, allocations: 3.005 MB / 338.4 MB, free: 2.469 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.6525721261277795]