Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.0018/0.0018, allocations: 81.58 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.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.001994/0.001994, allocations: 147.1 kB / 23.93 MB, free: 4.176 MB / 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.431/1.431, allocations: 173.4 MB / 200.4 MB, free: 12.86 MB / 190.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.906e-05/2.032e-05, allocations: 5.094 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002822/0.002842, allocations: 1.925 MB / 320.8 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001851/0.004693, allocations: 1.14 MB / 322 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002068/0.0049, allocations: 10.47 kB / 322 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003207/0.005221, allocations: 66.36 kB / 322.1 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003481/0.005569, allocations: 104.6 kB / 322.2 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008948/0.006464, allocations: 304.4 kB / 322.5 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003362/0.0068, allocations: 220.4 kB / 322.7 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.006916, allocations: 30.06 kB / 322.7 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.00713, allocations: 124.3 kB / 322.8 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.007299, allocations: 93.92 kB / 322.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.639e-05/0.007335, allocations: 12.56 kB / 322.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000183/0.007518, allocations: 79.06 kB / 323 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.62e-05/0.007604, allocations: 65.59 kB / 323.1 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.231e-05/0.007687, allocations: 57.3 kB / 323.1 MB, free: 1 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004401/0.008127, allocations: 300.9 kB / 323.4 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.008129, allocations: 0 / 323.4 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.00813, allocations: 5.5 kB / 323.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.008142, allocations: 0 / 323.4 MB, free: 0.8789 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008183/0.008961, allocations: 0.5083 MB / 323.9 MB, free: 448 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.008992, allocations: 9.938 kB / 323.9 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.558e-05/0.009078, allocations: 42.83 kB / 324 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.00943, allocations: 242.3 kB / 324.2 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.009448, allocations: 9.75 kB / 324.2 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.977e-05/0.009477, allocations: 21.97 kB / 324.2 MB, free: 216 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005561/0.01003, allocations: 342.5 kB / 324.6 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.01005, allocations: 7.938 kB / 324.6 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.01007, allocations: 10.16 kB / 324.6 MB, free: 0 / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.01007, allocations: 2.75 kB / 324.6 MB, free: 0 / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002117/0.01028, allocations: 73.62 kB / 324.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005826/0.01087, allocations: 322.3 kB / 325 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004029/0.01127, allocations: 194.6 kB / 325.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.01144, allocations: 86.38 kB / 325.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.01147, allocations: 7.594 kB / 325.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001729/0.01164, allocations: 83.5 kB / 325.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.01164, allocations: 0 / 325.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006216/0.01227, allocations: 259.3 kB / 325.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.01238, allocations: 149 kB / 325.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004124/0.01279, allocations: 343.3 kB / 326.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.01282, allocations: 30.95 kB / 326.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.01293, allocations: 133.1 kB / 326.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.01297, allocations: 28.97 kB / 326.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.956e-05/0.01304, allocations: 39.67 kB / 326.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.01321, allocations: 337.6 kB / 326.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.85e-05/0.0133, allocations: 32.98 kB / 326.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.01347, allocations: 156 kB / 326.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001949/0.01367, allocations: 102.9 kB / 326.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.01367, allocations: 1.953 kB / 326.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003196/0.01399, allocations: 160.9 kB / 327.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.014, allocations: 8.438 kB / 327.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.01401, allocations: 9.078 kB / 327.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.01403, allocations: 6.953 kB / 327.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.78e-05/0.01413, allocations: 15.67 kB / 327.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.01414, allocations: 2.219 kB / 327.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.361e-05/0.01423, allocations: 12.61 kB / 327.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.01424, allocations: 6.031 kB / 327.1 MB, free: 14.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001754/0.01442, allocations: 171.1 kB / 327.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002341/0.01465, allocations: 143.2 kB / 327.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000292/0.01494, allocations: 132.1 kB / 327.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.01495, allocations: 3.516 kB / 327.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.01495, allocations: 1.438 kB / 327.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.01496, allocations: 2.734 kB / 327.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002343/0.01519, allocations: 192 kB / 327.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.0152, allocations: 0 / 327.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.01534, allocations: 36.88 kB / 327.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.01534, allocations: 1.031 kB / 327.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.01536, allocations: 8.406 kB / 327.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.01536, allocations: 1.922 kB / 327.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.01536, allocations: 1.094 kB / 327.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004546/0.01582, allocations: 259.2 kB / 328.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.01593, allocations: 52.03 kB / 328.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.676e-05/0.01598, allocations: 7.891 kB / 328.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.43e-05/0.01607, allocations: 9.172 kB / 328.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.703e-05/0.01613, allocations: 12.34 kB / 328.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.01615, allocations: 7.781 kB / 328.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002792/0.01643, allocations: 250 kB / 328.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01643, allocations: 0 / 328.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.01675, allocations: 51.23 kB / 328.5 MB, free: 13.36 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.001699/0.01845, allocations: 462.5 kB / 328.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003158/0.01876, allocations: 120.1 kB / 329 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.01876, allocations: 0 / 329 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.272e-05/0.01886, allocations: 35.47 kB / 329.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005376/0.01939, allocations: 138.5 kB / 329.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007855/0.02018, allocations: 461.4 kB / 329.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001742/0.02035, allocations: 155.3 kB / 329.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.374e-05/0.02045, allocations: 34.34 kB / 329.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.507e-05/0.02052, allocations: 30.36 kB / 329.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.02052, allocations: 0 / 329.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of Templates: time 0.008934/0.02946, allocations: 3.588 MB / 333.5 MB, free: 11.35 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.3375330828130245]