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.001987/0.001987, allocations: 128.5 kB / 17.79 MB, free: 5.246 MB / 14.72 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.002725/0.002725, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 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.699/1.699, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001771/0.001771, allocations: 43.94 kB / 373.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1654, allocations: 53.33 MB / 426.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004491/0.1699, allocations: 1.986 MB / 428.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002604/0.1725, allocations: 1.36 MB / 430.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.1727, allocations: 7.938 kB / 430.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004236/0.1731, allocations: 71.55 kB / 430.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000518/0.1736, allocations: 147.4 kB / 430.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001055/0.1747, allocations: 265.8 kB / 430.6 MB, free: 452 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.1751, allocations: 227.4 kB / 430.8 MB, free: 224 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.1753, allocations: 36.28 kB / 430.9 MB, free: 188 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000198/0.1755, allocations: 95.62 kB / 431 MB, free: 92 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2713/0.4467, allocations: 111.5 kB / 431.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.372e-05/0.4468, allocations: 17.5 kB / 431.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002713/0.4471, allocations: 69.67 kB / 431.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.4472, allocations: 64.39 kB / 431.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.4474, allocations: 105.9 kB / 431.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005718/0.4479, allocations: 302.4 kB / 431.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4479, allocations: 0.5 kB / 431.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4479, allocations: 0 / 431.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.448, allocations: 2.312 kB / 431.6 MB, free: 8.164 MB / 350.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.0009333/0.4489, allocations: 0.5909 MB / 432.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.4489, allocations: 13.94 kB / 432.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.452e-05/0.449, allocations: 34.86 kB / 432.3 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.4494, allocations: 311.5 kB / 432.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/0.4494, allocations: 18.66 kB / 432.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.121e-05/0.4495, allocations: 13.39 kB / 432.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006448/0.4501, allocations: 324.4 kB / 432.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.4501, allocations: 0.5 kB / 432.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.113e-05/0.4502, allocations: 5.812 kB / 432.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.4502, allocations: 5.688 kB / 432.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.4503, allocations: 74.31 kB / 433 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006103/0.451, allocations: 420 kB / 433.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003857/0.4513, allocations: 184.7 kB / 433.6 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.4515, allocations: 90.59 kB / 433.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.816e-05/0.4515, allocations: 9.031 kB / 433.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001694/0.4517, allocations: 77.83 kB / 433.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.933e-06/0.4517, allocations: 3.719 kB / 433.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006336/0.4523, allocations: 252.8 kB / 434 MB, free: 6.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.748e-05/0.4524, allocations: 167.4 kB / 434.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000419/0.4529, allocations: 355.2 kB / 434.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.4529, allocations: 32.39 kB / 434.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.361e-05/0.453, allocations: 138 kB / 434.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.853e-05/0.453, allocations: 28.91 kB / 434.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.709e-05/0.4531, allocations: 58.06 kB / 434.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.136e-05/0.4532, allocations: 343.9 kB / 435.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.4533, allocations: 44.72 kB / 435.2 MB, free: 6.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.4535, allocations: 186.8 kB / 435.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/0.4538, allocations: 212.6 kB / 435.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.4538, allocations: 2.25 kB / 435.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004226/0.4542, allocations: 228.5 kB / 435.8 MB, free: 5.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.4542, allocations: 12.08 kB / 435.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.4542, allocations: 8.438 kB / 435.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.609e-05/0.4542, allocations: 8.062 kB / 435.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.4544, allocations: 38.22 kB / 435.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.4544, allocations: 9.344 kB / 435.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.4545, allocations: 24.27 kB / 435.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.4546, allocations: 15.22 kB / 435.9 MB, free: 5.699 MB / 350.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.0001821/0.4548, allocations: 175.4 kB / 436.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002359/0.455, allocations: 146.5 kB / 436.2 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.137e-05/0.4551, allocations: 33.66 kB / 436.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4551, allocations: 4.094 kB / 436.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.4551, allocations: 1.094 kB / 436.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.4551, allocations: 6.562 kB / 436.2 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.4553, allocations: 263.9 kB / 436.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.4553, allocations: 1.844 kB / 436.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001403/0.4555, allocations: 30.3 kB / 436.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.4555, allocations: 1.812 kB / 436.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.4555, allocations: 6.875 kB / 436.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.4555, allocations: 7.125 kB / 436.6 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4555, allocations: 0.8438 kB / 436.6 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004263/0.4559, allocations: 250.5 kB / 436.8 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.456, allocations: 129 kB / 436.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.808e-05/0.4561, allocations: 9.375 kB / 436.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.308e-05/0.4562, allocations: 12.56 kB / 436.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.762e-05/0.4562, allocations: 11.72 kB / 437 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.4563, allocations: 10.62 kB / 437 MB, free: 5.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002881/0.4566, allocations: 259.3 kB / 437.2 MB, free: 5.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4566, allocations: 0 / 437.2 MB, free: 5.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003613/0.4569, allocations: 49.62 kB / 437.3 MB, free: 5.02 MB / 350.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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.001647/0.4586, allocations: 441.3 kB / 437.7 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003734/0.4589, allocations: 151.3 kB / 437.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4589, allocations: 3.938 kB / 437.9 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.929e-05/0.459, allocations: 23.28 kB / 437.9 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006091/0.4596, allocations: 125.4 kB / 438 MB, free: 4.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008377/0.4605, allocations: 469.3 kB / 438.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.4607, allocations: 0.7681 MB / 439.2 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001019/0.4608, allocations: 33.11 kB / 439.3 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.484e-05/0.4609, allocations: 30.72 kB / 439.3 MB, free: 3.906 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4609, allocations: 0 / 439.3 MB, free: 3.906 MB / 350.1 MB Notification: Performance of Templates: time 0.009904/0.4708, allocations: 3.571 MB / 442.9 MB, free: 3.637 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.672023627907038]