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.001723/0.001723, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 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.002009/0.002009, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 18.57 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.463/1.463, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 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.523e-06/1.523e-06, allocations: 0 / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.897e-05/3.05e-05, allocations: 2.312 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003903/0.003933, allocations: 1.936 MB / 269.3 MB, free: 4.777 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002293/0.006227, allocations: 1.137 MB / 270.4 MB, free: 3.633 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.006362, allocations: 11.88 kB / 270.4 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003386/0.006701, allocations: 71.59 kB / 270.5 MB, free: 3.551 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003165/0.007017, allocations: 107.5 kB / 270.6 MB, free: 3.445 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008757/0.007893, allocations: 294.9 kB / 270.9 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003265/0.00822, allocations: 219.4 kB / 271.1 MB, free: 2.941 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.008343, allocations: 33.84 kB / 271.1 MB, free: 2.906 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.008542, allocations: 127.6 kB / 271.2 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.008714, allocations: 95.75 kB / 271.3 MB, free: 2.688 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.555e-05/0.00875, allocations: 12 kB / 271.3 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.00893, allocations: 75.81 kB / 271.4 MB, free: 2.602 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.009033, allocations: 71.75 kB / 271.5 MB, free: 2.531 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.583e-05/0.009128, allocations: 51.84 kB / 271.5 MB, free: 2.48 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004705/0.009599, allocations: 298.9 kB / 271.8 MB, free: 2.188 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.009605, allocations: 3.984 kB / 271.8 MB, free: 2.184 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.009606, allocations: 0 / 271.8 MB, free: 2.184 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.009612, allocations: 0 / 271.8 MB, free: 2.184 MB / 250.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.0009517/0.01056, allocations: 0.514 MB / 272.3 MB, free: 1.633 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.0106, allocations: 12.03 kB / 272.4 MB, free: 1.621 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.01071, allocations: 40.75 kB / 272.4 MB, free: 1.582 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.01115, allocations: 253.8 kB / 272.6 MB, free: 1.309 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.01117, allocations: 8.375 kB / 272.7 MB, free: 1.301 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.0112, allocations: 12.38 kB / 272.7 MB, free: 1.289 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006837/0.01188, allocations: 336.7 kB / 273 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.01189, allocations: 3.938 kB / 273 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.335e-05/0.01192, allocations: 8 kB / 273 MB, free: 0.918 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.01192, allocations: 4 kB / 273 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002134/0.01214, allocations: 79.83 kB / 273.1 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005857/0.01272, allocations: 334.1 kB / 273.4 MB, free: 484 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004406/0.01316, allocations: 191.7 kB / 273.6 MB, free: 264 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.01335, allocations: 90.66 kB / 273.7 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.01338, allocations: 4 kB / 273.7 MB, free: 160 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001999/0.01358, allocations: 83.33 kB / 273.8 MB, free: 64 kB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.412e-06/0.01358, allocations: 0 / 273.8 MB, free: 64 kB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006781/0.01426, allocations: 265.6 kB / 274 MB, free: 15.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/0.01439, allocations: 152.3 kB / 274.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004299/0.01482, allocations: 344.2 kB / 274.5 MB, free: 15.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.01485, allocations: 29.7 kB / 274.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.01497, allocations: 132.6 kB / 274.7 MB, free: 15.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.214e-05/0.01502, allocations: 27.78 kB / 274.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.144e-05/0.01509, allocations: 41.7 kB / 274.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.01528, allocations: 334.8 kB / 275.1 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.888e-05/0.01537, allocations: 27.98 kB / 275.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.01556, allocations: 153.8 kB / 275.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002152/0.01578, allocations: 113.3 kB / 275.4 MB, free: 14.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.01578, allocations: 0 / 275.4 MB, free: 14.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006054/0.01638, allocations: 165.3 kB / 275.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.0164, allocations: 4.156 kB / 275.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.01641, allocations: 4 kB / 275.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.01642, allocations: 4 kB / 275.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.01653, allocations: 19.98 kB / 275.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.01654, allocations: 4 kB / 275.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.49e-05/0.01662, allocations: 7.953 kB / 275.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.01664, allocations: 7.984 kB / 275.6 MB, free: 14.13 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.0001899/0.01683, allocations: 173.6 kB / 275.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002576/0.01709, allocations: 137.5 kB / 275.9 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003323/0.01742, allocations: 147.7 kB / 276 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.01743, allocations: 4 kB / 276 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.01743, allocations: 0 / 276 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.01743, allocations: 0 / 276 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002546/0.01769, allocations: 185.1 kB / 276.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.01769, allocations: 3.938 kB / 276.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.01784, allocations: 35.97 kB / 276.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.772e-06/0.01784, allocations: 4 kB / 276.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.01787, allocations: 0 / 276.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.01787, allocations: 4 kB / 276.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.01788, allocations: 3.938 kB / 276.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004914/0.01837, allocations: 266.5 kB / 276.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.01848, allocations: 55.72 kB / 276.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.696e-05/0.01853, allocations: 12.05 kB / 276.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.354e-05/0.01862, allocations: 8 kB / 276.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.976e-05/0.01868, allocations: 7.984 kB / 276.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.94e-05/0.01871, allocations: 12 kB / 276.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003147/0.01903, allocations: 251 kB / 276.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01903, allocations: 0 / 276.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002944/0.01932, allocations: 39.94 kB / 276.9 MB, free: 12.73 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.002075/0.0214, allocations: 471.6 kB / 277.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004071/0.02181, allocations: 117.6 kB / 277.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.02181, allocations: 3.938 kB / 277.5 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.02192, allocations: 31.98 kB / 277.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006216/0.02254, allocations: 120.8 kB / 277.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000996/0.02353, allocations: 490.9 kB / 278.1 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/0.02374, allocations: 157.2 kB / 278.3 MB, free: 11.49 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.515e-05/0.02383, allocations: 30.31 kB / 278.3 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.311e-05/0.02392, allocations: 36.48 kB / 278.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of SimCode: time 1.503e-06/0.02392, allocations: 0 / 278.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of Templates: time 0.008792/0.03271, allocations: 3.605 MB / 281.9 MB, free: 7.875 MB / 266.7 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.571982855908573]