Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.001074/0.001074, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001011/0.001011, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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.022/1.022, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 273 MB, free: 1.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.819e-05/3.009e-05, allocations: 2.312 kB / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003235/0.003265, allocations: 2.025 MB / 275 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00204/0.005305, allocations: 1.313 MB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.005526, allocations: 7.938 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004351/0.005962, allocations: 79.47 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004668/0.006428, allocations: 135.4 kB / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000781/0.007209, allocations: 271 kB / 276.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003477/0.007557, allocations: 231.3 kB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.007701, allocations: 40.48 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.007873, allocations: 123.6 kB / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.008033, allocations: 95.75 kB / 277.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.008062, allocations: 12 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000172/0.008234, allocations: 75.89 kB / 277.4 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.024e-05/0.008314, allocations: 67.75 kB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.521e-05/0.008399, allocations: 59.77 kB / 277.5 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.008777, allocations: 235.1 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.008782, allocations: 0 / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.008783, allocations: 0 / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.00879, allocations: 0 / 277.7 MB, free: 12.8 MB / 266.7 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.0008611/0.009651, allocations: 0.6255 MB / 278.3 MB, free: 12.13 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.009694, allocations: 8.031 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.031e-05/0.009784, allocations: 40.75 kB / 278.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.01012, allocations: 252.6 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.01014, allocations: 12.31 kB / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/0.01016, allocations: 12.38 kB / 278.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004896/0.01065, allocations: 329.6 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.01067, allocations: 3.938 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.01068, allocations: 0 / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.01069, allocations: 4 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.076e-05/0.01078, allocations: 43.89 kB / 279 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004687/0.01125, allocations: 387 kB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002507/0.0115, allocations: 189.3 kB / 279.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.122e-05/0.01159, allocations: 71.03 kB / 279.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.01162, allocations: 4 kB / 279.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001192/0.01174, allocations: 80.97 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 2.034e-06/0.01174, allocations: 0 / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003733/0.01211, allocations: 193.3 kB / 279.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.134e-05/0.0122, allocations: 156.7 kB / 280.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.01251, allocations: 342.3 kB / 280.4 MB, free: 9.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.01253, allocations: 33.7 kB / 280.4 MB, free: 9.781 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.01264, allocations: 183.3 kB / 280.6 MB, free: 9.598 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.903e-05/0.01268, allocations: 23.84 kB / 280.6 MB, free: 9.574 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.946e-05/0.01275, allocations: 51.31 kB / 280.7 MB, free: 9.516 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002769/0.01303, allocations: 0.5079 MB / 281.2 MB, free: 8.996 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.628e-05/0.01308, allocations: 19.98 kB / 281.2 MB, free: 8.977 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.01318, allocations: 143.6 kB / 281.4 MB, free: 8.793 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.0133, allocations: 106 kB / 281.5 MB, free: 8.664 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.0133, allocations: 0 / 281.5 MB, free: 8.664 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002022/0.0135, allocations: 129.4 kB / 281.6 MB, free: 8.531 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.01352, allocations: 8 kB / 281.6 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.01353, allocations: 0 / 281.6 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.591e-05/0.01356, allocations: 4 kB / 281.6 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.01366, allocations: 20.14 kB / 281.6 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.01367, allocations: 3.938 kB / 281.6 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.667e-05/0.01372, allocations: 8 kB / 281.6 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.01373, allocations: 8 kB / 281.6 MB, free: 8.48 MB / 266.7 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.0001121/0.01385, allocations: 176.8 kB / 281.8 MB, free: 8.297 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.01398, allocations: 125.4 kB / 281.9 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001644/0.01415, allocations: 107.4 kB / 282 MB, free: 8.059 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.01415, allocations: 11.98 kB / 282.1 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.01416, allocations: 0 / 282.1 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.01416, allocations: 4 kB / 282.1 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000163/0.01433, allocations: 208.4 kB / 282.3 MB, free: 7.805 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.01433, allocations: 4 kB / 282.3 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.866e-05/0.01442, allocations: 27.92 kB / 282.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.01442, allocations: 4 kB / 282.3 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.01443, allocations: 7.984 kB / 282.3 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.01444, allocations: 4 kB / 282.3 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.01444, allocations: 3.938 kB / 282.3 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002343/0.01467, allocations: 231.4 kB / 282.5 MB, free: 7.496 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.349e-05/0.01475, allocations: 51.72 kB / 282.6 MB, free: 7.445 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.01478, allocations: 12 kB / 282.6 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.175e-05/0.01483, allocations: 8 kB / 282.6 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.322e-05/0.01488, allocations: 11.92 kB / 282.6 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/0.0149, allocations: 12 kB / 282.6 MB, free: 7.402 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002515/0.01515, allocations: 231 kB / 282.9 MB, free: 7.176 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.01515, allocations: 0 / 282.9 MB, free: 7.176 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002463/0.0154, allocations: 44 kB / 282.9 MB, free: 7.133 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: 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.001129/0.01653, allocations: 421.7 kB / 283.3 MB, free: 6.852 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002408/0.01677, allocations: 87.52 kB / 283.4 MB, free: 6.762 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.01677, allocations: 320 / 283.4 MB, free: 6.762 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.12e-05/0.01683, allocations: 39.66 kB / 283.4 MB, free: 6.719 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.01722, allocations: 115.1 kB / 283.6 MB, free: 6.609 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006237/0.01784, allocations: 427.2 kB / 284 MB, free: 6.156 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.976e-05/0.0179, allocations: 100.3 kB / 284.1 MB, free: 6.039 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.315e-05/0.01796, allocations: 22.33 kB / 284.1 MB, free: 6.016 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.893e-05/0.01802, allocations: 32.48 kB / 284.1 MB, free: 5.984 MB / 266.7 MB Notification: Performance of SimCode: time 1.273e-06/0.01802, allocations: 4 kB / 284.1 MB, free: 5.98 MB / 266.7 MB Notification: Performance of Templates: time 0.006664/0.02469, allocations: 3.65 MB / 287.8 MB, free: 2.375 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.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.2660502586513758]