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.001916/0.001916, allocations: 112 kB / 20.43 MB, free: 1.457 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.002376/0.002376, allocations: 180.8 kB / 23.71 MB, free: 4.695 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.553/1.553, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.001602/0.001602, allocations: 39.92 kB / 370.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3219, allocations: 52.19 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003586/0.3254, allocations: 1.999 MB / 425.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.3275, allocations: 1.223 MB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.3276, allocations: 7.938 kB / 426.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.3279, allocations: 75.59 kB / 426.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002808/0.3282, allocations: 99.58 kB / 426.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000814/0.329, allocations: 294.3 kB / 426.8 MB, free: 11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002809/0.3292, allocations: 223.4 kB / 427 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.3294, allocations: 33.94 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.3295, allocations: 91.64 kB / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.3297, allocations: 115.4 kB / 427.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.39e-05/0.3297, allocations: 12 kB / 427.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001701/0.3299, allocations: 75.94 kB / 427.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.567e-05/0.33, allocations: 63.83 kB / 427.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.3301, allocations: 107.2 kB / 427.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004337/0.3305, allocations: 289.1 kB / 427.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3305, allocations: 0 / 427.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3305, allocations: 0 / 427.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.3305, allocations: 4 kB / 427.8 MB, free: 10.01 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.0008801/0.3314, allocations: 0.5139 MB / 428.3 MB, free: 9.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.3314, allocations: 11.97 kB / 428.3 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.475e-05/0.3315, allocations: 28.75 kB / 428.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003875/0.3319, allocations: 250.5 kB / 428.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.3319, allocations: 16.38 kB / 428.6 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.569e-05/0.3319, allocations: 20.06 kB / 428.6 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006339/0.3326, allocations: 322.7 kB / 428.9 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3326, allocations: 0 / 428.9 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.3326, allocations: 11.94 kB / 429 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3326, allocations: 3.984 kB / 429 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001805/0.3328, allocations: 71.91 kB / 429 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005839/0.3334, allocations: 381.4 kB / 429.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003852/0.3338, allocations: 183.9 kB / 429.6 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.3339, allocations: 86.55 kB / 429.7 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.334, allocations: 7.984 kB / 429.7 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001758/0.3341, allocations: 75.39 kB / 429.7 MB, free: 7.875 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.643e-06/0.3341, allocations: 0 / 429.7 MB, free: 7.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005717/0.3347, allocations: 261.7 kB / 430 MB, free: 7.613 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.3348, allocations: 174.1 kB / 430.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003982/0.3352, allocations: 344.1 kB / 430.5 MB, free: 7.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.891e-05/0.3353, allocations: 33.7 kB / 430.5 MB, free: 7.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.3354, allocations: 132.6 kB / 430.7 MB, free: 6.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.871e-05/0.3354, allocations: 31.83 kB / 430.7 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.331e-05/0.3355, allocations: 49.94 kB / 430.7 MB, free: 6.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.3357, allocations: 346.8 kB / 431.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.3358, allocations: 48.5 kB / 431.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.336, allocations: 184.8 kB / 431.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002924/0.3363, allocations: 207.3 kB / 431.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.3363, allocations: 0 / 431.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004103/0.3367, allocations: 241.1 kB / 431.8 MB, free: 5.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3367, allocations: 8 kB / 431.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.3367, allocations: 7.938 kB / 431.8 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.3367, allocations: 4 kB / 431.8 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.3369, allocations: 47.91 kB / 431.8 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.3369, allocations: 8.469 kB / 431.8 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.337, allocations: 20.27 kB / 431.8 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.3371, allocations: 16.31 kB / 431.9 MB, free: 5.551 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.000176/0.3372, allocations: 179.7 kB / 432 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002267/0.3375, allocations: 141.4 kB / 432.2 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002862/0.3378, allocations: 127.3 kB / 432.3 MB, free: 5.094 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.3378, allocations: 8.031 kB / 432.3 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.3378, allocations: 7.938 kB / 432.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3378, allocations: 0 / 432.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002447/0.338, allocations: 240.5 kB / 432.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.338, allocations: 0 / 432.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.3382, allocations: 36.05 kB / 432.6 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3382, allocations: 0 / 432.6 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.3382, allocations: 11.98 kB / 432.6 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3382, allocations: 0 / 432.6 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3382, allocations: 3.938 kB / 432.6 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004322/0.3386, allocations: 248.6 kB / 432.8 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.3387, allocations: 51.72 kB / 432.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.3388, allocations: 8 kB / 432.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.94e-05/0.3389, allocations: 4 kB / 432.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.995e-05/0.3389, allocations: 19.86 kB / 432.9 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.339, allocations: 4 kB / 432.9 MB, free: 4.398 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002691/0.3392, allocations: 251 kB / 433.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3392, allocations: 4 kB / 433.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003377/0.3396, allocations: 51.92 kB / 433.2 MB, free: 4.098 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 (22): * Single equations (assignments): 20 * 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.001581/0.3412, allocations: 433.5 kB / 433.7 MB, free: 3.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003633/0.3415, allocations: 160.5 kB / 433.8 MB, free: 3.664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3415, allocations: 0 / 433.8 MB, free: 3.664 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.275e-05/0.3416, allocations: 23.98 kB / 433.8 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004952/0.3421, allocations: 112.9 kB / 433.9 MB, free: 3.527 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007254/0.3428, allocations: 457.4 kB / 434.4 MB, free: 3.051 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/0.3432, allocations: 0.7795 MB / 435.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.542e-05/0.3433, allocations: 30.52 kB / 435.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.682e-05/0.3434, allocations: 35.36 kB / 435.2 MB, free: 2.184 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3434, allocations: 0 / 435.2 MB, free: 2.184 MB / 334.1 MB Notification: Performance of Templates: time 0.008333/0.3517, allocations: 3.634 MB / 438.9 MB, free: 14.57 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: 5.1525908056646585]