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.00177/0.00177, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002482/0.002482, allocations: 180.5 kB / 23.7 MB, free: 4.414 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.515/1.515, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.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 0.001681/0.001681, allocations: 39.94 kB / 370.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2607, allocations: 52.19 MB / 423.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003881/0.2645, allocations: 1.94 MB / 425 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.2667, allocations: 1.138 MB / 426.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.2668, allocations: 11.94 kB / 426.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000384/0.2672, allocations: 71.59 kB / 426.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000317/0.2675, allocations: 95.58 kB / 426.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009584/0.2685, allocations: 297.4 kB / 426.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003391/0.2688, allocations: 219.4 kB / 426.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.269, allocations: 29.94 kB / 426.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.2691, allocations: 95.62 kB / 426.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001804/0.2693, allocations: 107.5 kB / 427 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.867e-05/0.2693, allocations: 12 kB / 427.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.2695, allocations: 75.94 kB / 427.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.568e-05/0.2696, allocations: 63.77 kB / 427.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.2697, allocations: 87.33 kB / 427.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004357/0.2702, allocations: 289.1 kB / 427.6 MB, free: 9.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2702, allocations: 4 kB / 427.6 MB, free: 9.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2702, allocations: 4 kB / 427.6 MB, free: 9.949 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.2702, allocations: 0 / 427.6 MB, free: 9.949 MB / 334.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.0009677/0.2711, allocations: 0.5208 MB / 428.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.2712, allocations: 8.031 kB / 428.1 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.076e-05/0.2712, allocations: 32.75 kB / 428.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004603/0.2717, allocations: 246.5 kB / 428.4 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.2717, allocations: 8.375 kB / 428.4 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.367e-05/0.2718, allocations: 24.12 kB / 428.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006273/0.2724, allocations: 335.6 kB / 428.7 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.2724, allocations: 4 kB / 428.7 MB, free: 8.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.2724, allocations: 8 kB / 428.7 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.2724, allocations: 0 / 428.7 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.2726, allocations: 75.89 kB / 428.8 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005418/0.2732, allocations: 334.1 kB / 429.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003942/0.2735, allocations: 191.9 kB / 429.3 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.2737, allocations: 86.53 kB / 429.4 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.2737, allocations: 4 kB / 429.4 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001785/0.2739, allocations: 87.31 kB / 429.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 2.094e-06/0.2739, allocations: 0 / 429.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005795/0.2745, allocations: 254 kB / 429.8 MB, free: 7.594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.2746, allocations: 152.5 kB / 429.9 MB, free: 7.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003881/0.275, allocations: 344.2 kB / 430.2 MB, free: 7.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.912e-05/0.275, allocations: 33.7 kB / 430.3 MB, free: 7.027 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.2752, allocations: 132.6 kB / 430.4 MB, free: 6.895 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.994e-05/0.2752, allocations: 32.16 kB / 430.4 MB, free: 6.863 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.881e-05/0.2753, allocations: 53.94 kB / 430.5 MB, free: 6.801 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.2755, allocations: 338.8 kB / 430.8 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.2756, allocations: 52.44 kB / 430.9 MB, free: 6.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/0.2758, allocations: 238.6 kB / 431.1 MB, free: 6.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.2761, allocations: 211.3 kB / 431.3 MB, free: 5.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2761, allocations: 0 / 431.3 MB, free: 5.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004114/0.2765, allocations: 241.1 kB / 431.5 MB, free: 5.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.2766, allocations: 11.94 kB / 431.6 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.2766, allocations: 7.984 kB / 431.6 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.2766, allocations: 8 kB / 431.6 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.2767, allocations: 44.39 kB / 431.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.497e-06/0.2767, allocations: 8 kB / 431.6 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.2769, allocations: 19.88 kB / 431.6 MB, free: 5.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.2769, allocations: 16 kB / 431.7 MB, free: 5.488 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * 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 (28): * Single equations (assignments): 28 * 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.0001828/0.2771, allocations: 171.7 kB / 431.8 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000212/0.2773, allocations: 141.4 kB / 432 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000296/0.2776, allocations: 135.3 kB / 432.1 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2776, allocations: 4 kB / 432.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.2776, allocations: 0 / 432.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.2776, allocations: 8 kB / 432.1 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.2778, allocations: 185.1 kB / 432.3 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.2778, allocations: 4 kB / 432.3 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.2779, allocations: 27.92 kB / 432.3 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.2779, allocations: 4 kB / 432.3 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.885e-05/0.278, allocations: 7.984 kB / 432.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.278, allocations: 8.062 kB / 432.3 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.278, allocations: 0 / 432.3 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000419/0.2784, allocations: 250.4 kB / 432.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.2785, allocations: 55.72 kB / 432.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.902e-05/0.2785, allocations: 8 kB / 432.6 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.925e-05/0.2786, allocations: 11.98 kB / 432.7 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.707e-05/0.2787, allocations: 15.92 kB / 432.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.2787, allocations: 4 kB / 432.7 MB, free: 4.395 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002691/0.279, allocations: 259 kB / 432.9 MB, free: 4.141 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.279, allocations: 0 / 432.9 MB, free: 4.141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003381/0.2793, allocations: 40 kB / 433 MB, free: 4.102 MB / 334.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.001744/0.2811, allocations: 474.5 kB / 433.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004086/0.2815, allocations: 159.6 kB / 433.6 MB, free: 3.656 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2815, allocations: 0 / 433.6 MB, free: 3.656 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.248e-05/0.2816, allocations: 31.98 kB / 433.6 MB, free: 3.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000517/0.2821, allocations: 114.5 kB / 433.7 MB, free: 3.512 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008731/0.283, allocations: 473.7 kB / 434.2 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/0.2831, allocations: 165.3 kB / 434.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.2832, allocations: 34.28 kB / 434.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.161e-05/0.2833, allocations: 27.44 kB / 434.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2833, allocations: 0 / 434.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of Templates: time 0.008791/0.2921, allocations: 3.856 MB / 438.3 MB, free: 14.96 MB / 350.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.6945935767143965]