Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00192/0.00192, allocations: 118.6 kB / 18.5 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003719/0.003719, allocations: 202.6 kB / 21.45 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.682/1.682, allocations: 230.2 MB / 254.5 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 63.89 kB / 373.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1286, allocations: 53.32 MB / 427.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.00486/0.1334, allocations: 1.986 MB / 429.1 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002805/0.1362, allocations: 1.355 MB / 430.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002283/0.1365, allocations: 7.938 kB / 430.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004706/0.1369, allocations: 71.59 kB / 430.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006452/0.1376, allocations: 139.4 kB / 430.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.1388, allocations: 265.3 kB / 431 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000464/0.1392, allocations: 223.4 kB / 431.2 MB, free: 416 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.1394, allocations: 32.3 kB / 431.2 MB, free: 384 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.1397, allocations: 99.61 kB / 431.3 MB, free: 284 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002862/0.1399, allocations: 119.4 kB / 431.4 MB, free: 164 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.193e-05/0.14, allocations: 12 kB / 431.4 MB, free: 152 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002398/0.1402, allocations: 79.95 kB / 431.5 MB, free: 72 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.1403, allocations: 63.75 kB / 431.6 MB, free: 8 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3044/0.4448, allocations: 101.4 kB / 431.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007961/0.4456, allocations: 298.1 kB / 432 MB, free: 8.273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.4456, allocations: 0 / 432 MB, free: 8.273 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4456, allocations: 1.5 kB / 432 MB, free: 8.273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.183e-05/0.4456, allocations: 1.531 kB / 432 MB, free: 8.273 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.00117/0.4468, allocations: 0.5934 MB / 432.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.07e-05/0.4469, allocations: 12.28 kB / 432.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.447, allocations: 31.56 kB / 432.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005765/0.4476, allocations: 316.8 kB / 432.9 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.621e-05/0.4476, allocations: 16.28 kB / 432.9 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.4477, allocations: 15.25 kB / 432.9 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008079/0.4485, allocations: 318.9 kB / 433.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.4485, allocations: 4.844 kB / 433.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.4485, allocations: 5.812 kB / 433.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.4485, allocations: 4 kB / 433.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002181/0.4487, allocations: 68.59 kB / 433.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007206/0.4495, allocations: 426.8 kB / 433.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004694/0.4499, allocations: 185.9 kB / 433.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.4501, allocations: 84.7 kB / 434 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.935e-05/0.4501, allocations: 5.578 kB / 434 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000209/0.4504, allocations: 83.98 kB / 434.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 3.136e-06/0.4504, allocations: 0 / 434.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006266/0.451, allocations: 259.8 kB / 434.4 MB, free: 6.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.693e-05/0.4511, allocations: 166.5 kB / 434.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004787/0.4516, allocations: 354.5 kB / 434.9 MB, free: 6.641 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.4516, allocations: 35.3 kB / 434.9 MB, free: 6.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.4517, allocations: 133.7 kB / 435 MB, free: 6.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.644e-05/0.4518, allocations: 25.91 kB / 435.1 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.853e-05/0.4519, allocations: 60.48 kB / 435.1 MB, free: 6.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.014e-05/0.4519, allocations: 340.6 kB / 435.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.452, allocations: 49.59 kB / 435.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.4522, allocations: 186.5 kB / 435.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.4526, allocations: 213.2 kB / 435.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.4526, allocations: 1.031 kB / 435.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005936/0.4532, allocations: 233 kB / 436.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.4532, allocations: 7.062 kB / 436.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.4532, allocations: 5.031 kB / 436.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.755e-05/0.4532, allocations: 5.656 kB / 436.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.4535, allocations: 53.2 kB / 436.2 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.771e-05/0.4535, allocations: 5.5 kB / 436.2 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.4536, allocations: 22.73 kB / 436.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/0.4537, allocations: 19.5 kB / 436.2 MB, free: 5.801 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.0002569/0.4539, allocations: 178 kB / 436.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.4543, allocations: 137 kB / 436.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.4544, allocations: 36.14 kB / 436.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.4544, allocations: 7.406 kB / 436.6 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.4544, allocations: 1.062 kB / 436.6 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.4544, allocations: 1.125 kB / 436.6 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003724/0.4548, allocations: 272.5 kB / 436.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.4548, allocations: 1.125 kB / 436.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.4549, allocations: 31.98 kB / 436.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.4549, allocations: 1.219 kB / 436.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.459e-05/0.455, allocations: 5.562 kB / 436.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.455, allocations: 2.25 kB / 436.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.455, allocations: 1.938 kB / 436.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005634/0.4555, allocations: 254.7 kB / 437.1 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001739/0.4557, allocations: 130.3 kB / 437.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.299e-05/0.4558, allocations: 7.922 kB / 437.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.68e-05/0.4559, allocations: 9.578 kB / 437.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.456, allocations: 6.797 kB / 437.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.668e-05/0.456, allocations: 18.73 kB / 437.3 MB, free: 5.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004101/0.4564, allocations: 256.3 kB / 437.6 MB, free: 5.133 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4564, allocations: 0 / 437.6 MB, free: 5.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004697/0.4569, allocations: 51.28 kB / 437.6 MB, free: 5.129 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.001756/0.4587, allocations: 435.8 kB / 438 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005431/0.4592, allocations: 149.7 kB / 438.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4592, allocations: 1.094 kB / 438.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.4593, allocations: 23.69 kB / 438.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008659/0.4602, allocations: 124.7 kB / 438.3 MB, free: 4.941 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.4615, allocations: 472.9 kB / 438.8 MB, free: 4.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.4619, allocations: 0.7688 MB / 439.6 MB, free: 4.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000137/0.462, allocations: 39.92 kB / 439.6 MB, free: 4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.898e-05/0.4621, allocations: 26.36 kB / 439.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of SimCode: time 1.233e-06/0.4621, allocations: 0 / 439.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of Templates: time 0.01399/0.4761, allocations: 3.566 MB / 443.2 MB, free: 3.727 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.2809305833652616]