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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001523/0.001523, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001833/0.001834, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.502/1.502, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 60.48 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1344, allocations: 50.54 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004502/0.1389, allocations: 1.967 MB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002834/0.1418, allocations: 1.344 MB / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002609/0.1421, allocations: 7.938 kB / 362.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004815/0.1426, allocations: 71.59 kB / 362.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005362/0.1432, allocations: 143.4 kB / 362.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.1442, allocations: 266.3 kB / 362.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00037/0.1446, allocations: 223.4 kB / 362.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.1448, allocations: 56.27 kB / 363 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.145, allocations: 95.61 kB / 363.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.1451, allocations: 103.5 kB / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.045e-05/0.1452, allocations: 16 kB / 363.2 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001928/0.1454, allocations: 75.89 kB / 363.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.1455, allocations: 67.77 kB / 363.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.1456, allocations: 99.33 kB / 363.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004261/0.1461, allocations: 298.9 kB / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1461, allocations: 0 / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1461, allocations: 0 / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1461, allocations: 4 kB / 363.7 MB, free: 8.492 MB / 302.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.001155/0.1473, allocations: 0.5856 MB / 364.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.1473, allocations: 16.03 kB / 364.3 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.1475, allocations: 28.56 kB / 364.3 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005235/0.148, allocations: 315.4 kB / 364.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.1481, allocations: 8.375 kB / 364.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.45e-05/0.1481, allocations: 16.12 kB / 364.7 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006568/0.1488, allocations: 323.2 kB / 365 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.1488, allocations: 0 / 365 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.445e-05/0.1488, allocations: 4 kB / 365 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.1488, allocations: 7.938 kB / 365 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.149, allocations: 71.89 kB / 365.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000719/0.1497, allocations: 426.2 kB / 365.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004577/0.1502, allocations: 196 kB / 365.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.1504, allocations: 90.53 kB / 365.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.304e-05/0.1505, allocations: 4 kB / 365.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001975/0.1507, allocations: 83.31 kB / 365.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.723e-06/0.1507, allocations: 0 / 365.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006641/0.1513, allocations: 261.3 kB / 366.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.1515, allocations: 162.2 kB / 366.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004038/0.1519, allocations: 358.9 kB / 366.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.335e-05/0.1519, allocations: 33.7 kB / 366.6 MB, free: 5.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.1521, allocations: 132.7 kB / 366.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.47e-05/0.1521, allocations: 27.7 kB / 366.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.953e-05/0.1522, allocations: 53.94 kB / 366.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002012/0.1524, allocations: 342.7 kB / 367.2 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.1525, allocations: 40.45 kB / 367.2 MB, free: 4.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002434/0.1528, allocations: 192.5 kB / 367.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002792/0.1531, allocations: 215.2 kB / 367.6 MB, free: 4.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.1531, allocations: 0 / 367.6 MB, free: 4.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004076/0.1535, allocations: 237.3 kB / 367.9 MB, free: 3.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.1535, allocations: 8 kB / 367.9 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.1536, allocations: 4 kB / 367.9 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.015e-05/0.1536, allocations: 4 kB / 367.9 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001842/0.1538, allocations: 43.92 kB / 367.9 MB, free: 3.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.382e-05/0.1538, allocations: 12.19 kB / 367.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.154, allocations: 23.88 kB / 367.9 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.154, allocations: 19.98 kB / 368 MB, free: 3.793 MB / 302.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.000228/0.1542, allocations: 180 kB / 368.1 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002276/0.1545, allocations: 145.6 kB / 368.3 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.88e-05/0.1546, allocations: 33.78 kB / 368.3 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.958e-06/0.1546, allocations: 4 kB / 368.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.1546, allocations: 7.875 kB / 368.3 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.1546, allocations: 0 / 368.3 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/0.1549, allocations: 269.4 kB / 368.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1549, allocations: 0 / 368.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.1551, allocations: 31.92 kB / 368.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1551, allocations: 0 / 368.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.499e-05/0.1551, allocations: 16.45 kB / 368.6 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1551, allocations: 0 / 368.6 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.1551, allocations: 3.938 kB / 368.6 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004457/0.1556, allocations: 247.4 kB / 368.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001827/0.1558, allocations: 124.7 kB / 369 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.43e-05/0.1558, allocations: 8 kB / 369 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.534e-05/0.1559, allocations: 11.98 kB / 369 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.529e-05/0.156, allocations: 11.94 kB / 369 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.1561, allocations: 11.92 kB / 369 MB, free: 2.605 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003291/0.1564, allocations: 257.9 kB / 369.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1564, allocations: 0 / 369.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003642/0.1568, allocations: 48 kB / 369.3 MB, free: 2.305 MB / 302.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.001324/0.1581, allocations: 424.8 kB / 369.8 MB, free: 2.016 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003919/0.1585, allocations: 157.6 kB / 369.9 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1585, allocations: 0 / 369.9 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.041e-05/0.1586, allocations: 29.05 kB / 369.9 MB, free: 1.836 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006098/0.1592, allocations: 121 kB / 370.1 MB, free: 1.719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009265/0.1602, allocations: 481.1 kB / 370.5 MB, free: 1.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004724/0.1607, allocations: 0.7716 MB / 371.3 MB, free: 432 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.1608, allocations: 38.77 kB / 371.3 MB, free: 392 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.277e-05/0.1609, allocations: 27.42 kB / 371.4 MB, free: 364 kB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1609, allocations: 3.938 kB / 371.4 MB, free: 360 kB / 302.1 MB Notification: Performance of Templates: time 0.2324/0.3932, allocations: 3.505 MB / 374.9 MB, free: 19.38 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (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 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches