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.001639/0.001639, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.001828/0.001828, allocations: 185 kB / 24.46 MB, free: 3.863 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.523/1.523, allocations: 225.7 MB / 253.3 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.001719/0.001719, allocations: 51.92 kB / 371.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2651, allocations: 52.17 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003679/0.2687, allocations: 1.952 MB / 425.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002164/0.2709, allocations: 1.138 MB / 426.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.271, allocations: 3.938 kB / 426.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002993/0.2713, allocations: 71.61 kB / 427 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002786/0.2716, allocations: 99.58 kB / 427.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008551/0.2724, allocations: 305.3 kB / 427.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003534/0.2728, allocations: 211.4 kB / 427.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.2729, allocations: 37.59 kB / 427.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/0.2731, allocations: 95.62 kB / 427.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.2732, allocations: 111.5 kB / 427.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.462e-05/0.2733, allocations: 12 kB / 427.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001744/0.2735, allocations: 75.94 kB / 427.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.139e-05/0.2735, allocations: 59.83 kB / 428 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.2736, allocations: 79.41 kB / 428 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000396/0.274, allocations: 293.8 kB / 428.3 MB, free: 9.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.274, allocations: 0 / 428.3 MB, free: 9.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.274, allocations: 0 / 428.3 MB, free: 9.938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2741, allocations: 4 kB / 428.3 MB, free: 9.934 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.0008894/0.2749, allocations: 0.5178 MB / 428.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.275, allocations: 11.97 kB / 428.9 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.904e-05/0.2751, allocations: 32.75 kB / 428.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004211/0.2755, allocations: 246.5 kB / 429.1 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.2755, allocations: 8.375 kB / 429.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.913e-05/0.2755, allocations: 16.12 kB / 429.2 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006617/0.2762, allocations: 339.6 kB / 429.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.2762, allocations: 0 / 429.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.174e-05/0.2762, allocations: 8 kB / 429.5 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.2762, allocations: 0 / 429.5 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.2764, allocations: 79.89 kB / 429.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005722/0.277, allocations: 338.1 kB / 429.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003844/0.2774, allocations: 183.9 kB / 430.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.2776, allocations: 90.53 kB / 430.2 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.2776, allocations: 4 kB / 430.2 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001845/0.2778, allocations: 79.31 kB / 430.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.933e-06/0.2778, allocations: 0 / 430.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005901/0.2784, allocations: 269.5 kB / 430.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.2785, allocations: 148.4 kB / 430.7 MB, free: 7.395 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.2789, allocations: 344.2 kB / 431 MB, free: 7.047 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/0.2789, allocations: 29.7 kB / 431 MB, free: 7.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.279, allocations: 136.5 kB / 431.2 MB, free: 6.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.693e-05/0.2791, allocations: 35.78 kB / 431.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.278e-05/0.2792, allocations: 53.92 kB / 431.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.2793, allocations: 342.8 kB / 431.6 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.2794, allocations: 40.44 kB / 431.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/0.2797, allocations: 234.6 kB / 431.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003057/0.28, allocations: 215.3 kB / 432.1 MB, free: 5.828 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.28, allocations: 0 / 432.1 MB, free: 5.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004392/0.2804, allocations: 241.2 kB / 432.3 MB, free: 5.586 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.2805, allocations: 11.94 kB / 432.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.2805, allocations: 4 kB / 432.3 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.2805, allocations: 8 kB / 432.3 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.2807, allocations: 39.92 kB / 432.4 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.2807, allocations: 4 kB / 432.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.2808, allocations: 24.19 kB / 432.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.2808, allocations: 16.36 kB / 432.4 MB, free: 5.48 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.0001877/0.281, allocations: 179.7 kB / 432.6 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002378/0.2812, allocations: 141.4 kB / 432.7 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000304/0.2815, allocations: 139.7 kB / 432.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2815, allocations: 4 kB / 432.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.2815, allocations: 0 / 432.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2816, allocations: 480 / 432.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002121/0.2818, allocations: 185.1 kB / 433 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2818, allocations: 0 / 433 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.2819, allocations: 35.92 kB / 433.1 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.2819, allocations: 4 kB / 433.1 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.2819, allocations: 11.92 kB / 433.1 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.2819, allocations: 4 kB / 433.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2819, allocations: 0 / 433.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004369/0.2824, allocations: 258.5 kB / 433.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.2825, allocations: 51.72 kB / 433.4 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.2825, allocations: 8 kB / 433.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.159e-05/0.2826, allocations: 11.92 kB / 433.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.62e-05/0.2827, allocations: 15.92 kB / 433.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.2827, allocations: 8 kB / 433.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002739/0.283, allocations: 255 kB / 433.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.283, allocations: 0 / 433.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003231/0.2833, allocations: 44 kB / 433.7 MB, free: 4.078 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.001725/0.285, allocations: 464.7 kB / 434.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003568/0.2854, allocations: 160.1 kB / 434.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2854, allocations: 0 / 434.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.617e-05/0.2854, allocations: 27.98 kB / 434.4 MB, free: 3.613 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/0.286, allocations: 112.9 kB / 434.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008018/0.2868, allocations: 0.4916 MB / 435 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001746/0.2869, allocations: 161.9 kB / 435.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.06e-05/0.287, allocations: 35.41 kB / 435.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.287, allocations: 0 / 435.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of Templates: time 0.006357/0.2934, allocations: 3.685 MB / 438.8 MB, free: 15.08 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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: 7.701474005822092]