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.001324/0.001324, allocations: 83.3 kB / 20.68 MB, free: 1.023 MB / 14.72 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.0015/0.0015, allocations: 167.3 kB / 23.95 MB, free: 4.16 MB / 14.72 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.51/1.51, allocations: 177.1 MB / 204.3 MB, free: 9.156 MB / 190.1 MB " [Timeout remaining time 178] 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 1.473e-06/1.473e-06, allocations: 0 / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.938e-05/3.085e-05, allocations: 6.703 kB / 325.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003325/0.003356, allocations: 1.881 MB / 326.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002574/0.00593, allocations: 1.207 MB / 328.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001798/0.00611, allocations: 2.062 kB / 328.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004022/0.006512, allocations: 71.39 kB / 328.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005118/0.007024, allocations: 145 kB / 328.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008762/0.0079, allocations: 222.8 kB / 328.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003155/0.008216, allocations: 181.9 kB / 328.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.008345, allocations: 26.2 kB / 328.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002214/0.008566, allocations: 101.8 kB / 328.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.008723, allocations: 67.53 kB / 329 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.338e-05/0.008756, allocations: 13.05 kB / 329 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000211/0.008967, allocations: 73.52 kB / 329 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.009072, allocations: 50.83 kB / 329.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.85e-05/0.009161, allocations: 42.53 kB / 329.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000464/0.009625, allocations: 249.2 kB / 329.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.009629, allocations: 0.7031 kB / 329.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.009631, allocations: 0 / 329.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.319e-06/0.009636, allocations: 4 kB / 329.4 MB, free: 13.94 MB / 302.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.0008243/0.01046, allocations: 471.8 kB / 329.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.0105, allocations: 9.75 kB / 329.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.143e-05/0.01059, allocations: 23.77 kB / 329.9 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004382/0.01103, allocations: 230.2 kB / 330.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.01105, allocations: 7.547 kB / 330.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.01107, allocations: 9.609 kB / 330.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004078/0.01148, allocations: 178.7 kB / 330.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.01149, allocations: 3.938 kB / 330.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.01151, allocations: 1.844 kB / 330.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.01152, allocations: 1.094 kB / 330.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001318/0.01165, allocations: 42.25 kB / 330.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006118/0.01226, allocations: 320.6 kB / 330.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.01256, allocations: 119 kB / 330.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.01269, allocations: 54.86 kB / 330.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.01272, allocations: 2.75 kB / 330.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002091/0.01293, allocations: 81.48 kB / 330.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.144e-06/0.01293, allocations: 3.938 kB / 330.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004917/0.01342, allocations: 160.4 kB / 331.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/0.01355, allocations: 135.6 kB / 331.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004671/0.01402, allocations: 336.1 kB / 331.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.01405, allocations: 31.05 kB / 331.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.01417, allocations: 134.2 kB / 331.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.179e-05/0.0142, allocations: 14.78 kB / 331.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.216e-05/0.01427, allocations: 26.61 kB / 331.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.01446, allocations: 329.4 kB / 332 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.57e-05/0.01455, allocations: 22.8 kB / 332.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.0147, allocations: 118.9 kB / 332.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.01488, allocations: 62.05 kB / 332.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.01488, allocations: 1.062 kB / 332.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000275/0.01516, allocations: 111.1 kB / 332.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.01518, allocations: 8.531 kB / 332.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.01518, allocations: 1.031 kB / 332.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.0152, allocations: 0.9375 kB / 332.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.01532, allocations: 14.2 kB / 332.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.01533, allocations: 1.125 kB / 332.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.099e-05/0.01542, allocations: 3.125 kB / 332.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.01544, allocations: 7.125 kB / 332.4 MB, free: 11.45 MB / 302.1 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 0.0002163/0.01565, allocations: 156.1 kB / 332.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.01577, allocations: 70.16 kB / 332.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000337/0.01611, allocations: 128.1 kB / 332.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.01611, allocations: 1.031 kB / 332.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.01612, allocations: 5.125 kB / 332.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.01613, allocations: 1.156 kB / 332.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002746/0.0164, allocations: 185.6 kB / 332.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.01641, allocations: 1.156 kB / 332.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.385e-05/0.01649, allocations: 17.3 kB / 332.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.0165, allocations: 2.344 kB / 332.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.01651, allocations: 5.219 kB / 332.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.01652, allocations: 1.312 kB / 332.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.01652, allocations: 1.188 kB / 332.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003738/0.01689, allocations: 175.2 kB / 333.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.01701, allocations: 41.17 kB / 333.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.703e-05/0.01705, allocations: 6.375 kB / 333.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.316e-05/0.01713, allocations: 6.406 kB / 333.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.0172, allocations: 8.453 kB / 333.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.01722, allocations: 7.406 kB / 333.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000346/0.01757, allocations: 248.2 kB / 333.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01757, allocations: 4 kB / 333.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003194/0.01789, allocations: 33.62 kB / 333.5 MB, free: 10.65 MB / 302.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 (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.001899/0.01979, allocations: 461.5 kB / 333.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000309/0.0201, allocations: 69 kB / 334 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.0201, allocations: 0 / 334 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.02021, allocations: 38.66 kB / 334 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004702/0.02068, allocations: 67.53 kB / 334.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008214/0.0215, allocations: 384.7 kB / 334.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001592/0.02166, allocations: 127.9 kB / 334.6 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000104/0.02176, allocations: 29.78 kB / 334.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.747e-05/0.02184, allocations: 28.2 kB / 334.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.02184, allocations: 0 / 334.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of Templates: time 0.008406/0.03025, allocations: 2.968 MB / 337.6 MB, free: 8.406 MB / 302.1 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.477346275001764]