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.001129/0.001129, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 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.001318/0.001318, allocations: 138.7 kB / 24.97 MB, free: 8.359 MB / 18.57 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.026/1.026, allocations: 173.4 MB / 201.5 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 179] 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 1.302e-06/1.302e-06, allocations: 0 / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.453e-05/1.583e-05, allocations: 6.25 kB / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002224/0.00224, allocations: 1.913 MB / 270 MB, free: 4.805 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.003552, allocations: 1.098 MB / 271.1 MB, free: 3.699 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.003662, allocations: 7.938 kB / 271.1 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.003957, allocations: 67.61 kB / 271.1 MB, free: 3.625 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002445/0.004202, allocations: 91.53 kB / 271.2 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000509/0.004711, allocations: 251.1 kB / 271.5 MB, free: 3.289 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00022/0.004931, allocations: 179.5 kB / 271.7 MB, free: 3.113 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.005041, allocations: 25.78 kB / 271.7 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.005162, allocations: 99.72 kB / 271.8 MB, free: 2.988 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.5e-05/0.005257, allocations: 63.8 kB / 271.8 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.00528, allocations: 12 kB / 271.9 MB, free: 2.914 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.005403, allocations: 71.88 kB / 271.9 MB, free: 2.844 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.253e-05/0.005476, allocations: 55.77 kB / 272 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.006e-05/0.005526, allocations: 35.88 kB / 272 MB, free: 2.754 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.005768, allocations: 191.2 kB / 272.2 MB, free: 2.566 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.00577, allocations: 0 / 272.2 MB, free: 2.566 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.005771, allocations: 0 / 272.2 MB, free: 2.566 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.005775, allocations: 4 kB / 272.2 MB, free: 2.562 MB / 250.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.0005518/0.006327, allocations: 0.5556 MB / 272.8 MB, free: 1.965 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.006361, allocations: 8.031 kB / 272.8 MB, free: 1.957 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.051e-05/0.006421, allocations: 36.75 kB / 272.8 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/0.006667, allocations: 219.5 kB / 273 MB, free: 1.68 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.006686, allocations: 8.375 kB / 273 MB, free: 1.672 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.0067, allocations: 4.375 kB / 273 MB, free: 1.668 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002645/0.006965, allocations: 202.3 kB / 273.2 MB, free: 1.434 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.006973, allocations: 3.938 kB / 273.2 MB, free: 1.43 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.006983, allocations: 0 / 273.2 MB, free: 1.43 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.006991, allocations: 0 / 273.2 MB, free: 1.43 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.753e-05/0.007048, allocations: 31.91 kB / 273.3 MB, free: 1.398 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003737/0.007422, allocations: 363 kB / 273.6 MB, free: 1 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.007559, allocations: 121.3 kB / 273.7 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.141e-05/0.00761, allocations: 43.05 kB / 273.8 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.007628, allocations: 4 kB / 273.8 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001073/0.007736, allocations: 69.05 kB / 273.8 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.007737, allocations: 0 / 273.8 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002457/0.007983, allocations: 129.6 kB / 274 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.961e-05/0.008052, allocations: 132.5 kB / 274.1 MB, free: 420 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.008267, allocations: 324.6 kB / 274.4 MB, free: 76 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.008285, allocations: 25.7 kB / 274.4 MB, free: 44 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.831e-05/0.008383, allocations: 182.8 kB / 274.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.008406, allocations: 23.83 kB / 274.6 MB, free: 15.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/0.008442, allocations: 27.38 kB / 274.7 MB, free: 15.8 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.008573, allocations: 0.5079 MB / 275.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.435e-05/0.008597, allocations: 8.062 kB / 275.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.509e-05/0.008652, allocations: 106.1 kB / 275.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.795e-05/0.00871, allocations: 47.3 kB / 275.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.008712, allocations: 4.031 kB / 275.3 MB, free: 15.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.849e-05/0.00881, allocations: 85.53 kB / 275.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.008822, allocations: 4 kB / 275.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.008828, allocations: 4 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.008842, allocations: 0 / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.724e-05/0.008909, allocations: 11.98 kB / 275.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.008915, allocations: 4 kB / 275.5 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.011e-05/0.008955, allocations: 7.953 kB / 275.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-06/0.00896, allocations: 4 kB / 275.5 MB, free: 14.96 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.251e-05/0.009043, allocations: 168.5 kB / 275.6 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.429e-05/0.009097, allocations: 65.58 kB / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001416/0.009239, allocations: 107.4 kB / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.009241, allocations: 0 / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.009244, allocations: 0 / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.00925, allocations: 7.984 kB / 275.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001314/0.009382, allocations: 188.5 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.009384, allocations: 4 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.941e-05/0.009423, allocations: 12 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.009425, allocations: 0 / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.009435, allocations: 12.11 kB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.009438, allocations: 4 kB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.009439, allocations: 4 kB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001386/0.009578, allocations: 167.5 kB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.996e-05/0.009628, allocations: 39.78 kB / 276.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/0.009651, allocations: 7.984 kB / 276.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.176e-05/0.009682, allocations: 4 kB / 276.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.67e-05/0.009729, allocations: 11.92 kB / 276.2 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.009743, allocations: 4 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001252/0.009868, allocations: 225 kB / 276.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009868, allocations: 4 kB / 276.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001708/0.01004, allocations: 32 kB / 276.5 MB, free: 13.82 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.0008082/0.01085, allocations: 401.1 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001222/0.01097, allocations: 47.61 kB / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.01097, allocations: 0 / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.782e-05/0.01102, allocations: 35.66 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.01131, allocations: 66.95 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004687/0.01178, allocations: 322 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.807e-05/0.01183, allocations: 88.22 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.232e-05/0.01189, allocations: 25.47 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.569e-05/0.01193, allocations: 24.48 kB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.01193, allocations: 0 / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of Templates: time 0.005611/0.01754, allocations: 2.949 MB / 280.4 MB, free: 10.01 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 240] 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","",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.056767917936668]