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.001113/0.001113, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.0009702/0.0009702, allocations: 168.6 kB / 25 MB, free: 8.863 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 1.08/1.08, allocations: 177.1 MB / 205.3 MB, free: 5.637 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.134e-06/2.134e-06, allocations: 0 / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.391e-05/3.605e-05, allocations: 2.312 kB / 273.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002991/0.003027, allocations: 1.94 MB / 275 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.004735, allocations: 1.231 MB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.004872, allocations: 3.938 kB / 276.2 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003803/0.005252, allocations: 67.61 kB / 276.3 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004427/0.005695, allocations: 139.3 kB / 276.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00065/0.006345, allocations: 231.1 kB / 276.7 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002729/0.006618, allocations: 183.5 kB / 276.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.006744, allocations: 21.8 kB / 276.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.006883, allocations: 99.67 kB / 277 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.00701, allocations: 71.78 kB / 277 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.482e-05/0.007035, allocations: 8 kB / 277 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.0072, allocations: 71.89 kB / 277.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.399e-05/0.007294, allocations: 59.75 kB / 277.2 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.381e-05/0.007358, allocations: 39.88 kB / 277.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002897/0.007647, allocations: 191.2 kB / 277.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.007651, allocations: 0 / 277.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.007652, allocations: 0 / 277.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.007656, allocations: 0 / 277.4 MB, free: 13.49 MB / 266.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.000557/0.008213, allocations: 0.5711 MB / 278 MB, free: 12.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.008249, allocations: 8.031 kB / 278 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.664e-05/0.008306, allocations: 28.8 kB / 278 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.00856, allocations: 231.5 kB / 278.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.008575, allocations: 4.375 kB / 278.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.00859, allocations: 12.38 kB / 278.2 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002734/0.008863, allocations: 186.3 kB / 278.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.008873, allocations: 3.938 kB / 278.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.008885, allocations: 8 kB / 278.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.008892, allocations: 0 / 278.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.285e-05/0.008944, allocations: 19.92 kB / 278.4 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003855/0.00933, allocations: 378.9 kB / 278.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.009478, allocations: 121.3 kB / 278.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.125e-05/0.009529, allocations: 43.05 kB / 279 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.009548, allocations: 4 kB / 279 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001025/0.009651, allocations: 69.03 kB / 279 MB, free: 11.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.182e-06/0.009652, allocations: 3.938 kB / 279.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002439/0.009896, allocations: 133.5 kB / 279.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.009962, allocations: 132.5 kB / 279.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/0.01019, allocations: 324.3 kB / 279.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.01021, allocations: 25.7 kB / 279.7 MB, free: 10.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.1e-05/0.0103, allocations: 186.8 kB / 279.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.23e-05/0.01032, allocations: 19.95 kB / 279.9 MB, free: 10.74 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.874e-05/0.01036, allocations: 31.38 kB / 279.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.01048, allocations: 0.5079 MB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.434e-05/0.01051, allocations: 8 kB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.964e-05/0.01057, allocations: 114.3 kB / 280.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.003e-05/0.01063, allocations: 47.3 kB / 280.6 MB, free: 9.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.01063, allocations: 4 kB / 280.6 MB, free: 9.977 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001044/0.01073, allocations: 85.48 kB / 280.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.01076, allocations: 8 kB / 280.7 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.01077, allocations: 0 / 280.7 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.01078, allocations: 0 / 280.7 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.19e-05/0.01085, allocations: 15.98 kB / 280.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.01086, allocations: 0 / 280.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.758e-05/0.01089, allocations: 8.062 kB / 280.7 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.0109, allocations: 0 / 280.7 MB, free: 9.855 MB / 266.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 8.951e-05/0.01099, allocations: 169.6 kB / 280.8 MB, free: 9.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.961e-05/0.01105, allocations: 69.55 kB / 280.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001453/0.01119, allocations: 103.3 kB / 281 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.0112, allocations: 8 kB / 281 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.0112, allocations: 0 / 281 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.01121, allocations: 3.984 kB / 281 MB, free: 9.484 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.01135, allocations: 196.5 kB / 281.2 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.01135, allocations: 4.062 kB / 281.2 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.322e-05/0.01139, allocations: 19.98 kB / 281.2 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.01139, allocations: 0 / 281.2 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.998e-06/0.0114, allocations: 4 kB / 281.2 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.0114, allocations: 0 / 281.2 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01141, allocations: 0 / 281.2 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001437/0.01155, allocations: 167.5 kB / 281.4 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.026e-05/0.0116, allocations: 39.83 kB / 281.4 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.01162, allocations: 4 kB / 281.4 MB, free: 8.992 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.21e-05/0.01166, allocations: 4 kB / 281.5 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.041e-05/0.01172, allocations: 15.92 kB / 281.5 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.01173, allocations: 4 kB / 281.5 MB, free: 8.969 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001329/0.01186, allocations: 229 kB / 281.7 MB, free: 8.746 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01186, allocations: 0 / 281.7 MB, free: 8.746 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002568/0.01212, allocations: 35.92 kB / 281.7 MB, free: 8.711 MB / 266.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.001152/0.01327, allocations: 400.1 kB / 282.1 MB, free: 8.457 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001726/0.01344, allocations: 55.59 kB / 282.2 MB, free: 8.398 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.01345, allocations: 0 / 282.2 MB, free: 8.398 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.996e-05/0.01351, allocations: 27.67 kB / 282.2 MB, free: 8.367 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.01389, allocations: 76.36 kB / 282.3 MB, free: 8.293 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005794/0.01447, allocations: 341.5 kB / 282.6 MB, free: 7.926 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.328e-05/0.01452, allocations: 83.97 kB / 282.7 MB, free: 7.824 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.512e-05/0.01458, allocations: 25.75 kB / 282.7 MB, free: 7.801 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.574e-05/0.01463, allocations: 32.48 kB / 282.8 MB, free: 7.77 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01464, allocations: 0 / 282.8 MB, free: 7.77 MB / 266.7 MB Notification: Performance of Templates: time 0.006177/0.02081, allocations: 2.979 MB / 285.7 MB, free: 4.824 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0918795350007713]