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.001239/0.001239, allocations: 104.5 kB / 17.01 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, allocations: 198 kB / 17.91 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.557/1.557, allocations: 227.7 MB / 246.4 MB, free: 9.793 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002825/0.0002826, allocations: 4 kB / 307.1 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1366, allocations: 51.52 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002861/0.1395, allocations: 1.638 MB / 360.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002738/0.1423, allocations: 1.248 MB / 361.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00024/0.1426, allocations: 7.938 kB / 361.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004068/0.143, allocations: 67.73 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004502/0.1435, allocations: 111.6 kB / 361.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009727/0.1445, allocations: 223 kB / 361.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004186/0.1449, allocations: 187.4 kB / 362.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.1451, allocations: 44.27 kB / 362.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002683/0.1453, allocations: 87.61 kB / 362.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.1455, allocations: 83.61 kB / 362.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.506e-05/0.1455, allocations: 4 kB / 362.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001705/0.1457, allocations: 59.89 kB / 362.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.653e-05/0.1458, allocations: 51.83 kB / 362.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.837e-05/0.1459, allocations: 69.52 kB / 362.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003259/0.1462, allocations: 207.8 kB / 362.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.597e-06/0.1463, allocations: 4 kB / 362.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1463, allocations: 0 / 362.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.1463, allocations: 0 / 362.7 MB, free: 9.348 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.001113/0.1474, allocations: 0.5388 MB / 363.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.1474, allocations: 12.03 kB / 363.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.1476, allocations: 31.72 kB / 363.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004854/0.1481, allocations: 306.2 kB / 363.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.185e-05/0.1481, allocations: 8 kB / 363.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.718e-05/0.1482, allocations: 16 kB / 363.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006496/0.1488, allocations: 318.6 kB / 363.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.1488, allocations: 4 kB / 363.9 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.1489, allocations: 4 kB / 363.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.1489, allocations: 7.938 kB / 363.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.1491, allocations: 63.95 kB / 364 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007025/0.1498, allocations: 422.2 kB / 364.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004038/0.1502, allocations: 204 kB / 364.6 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.1504, allocations: 90.53 kB / 364.7 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.1504, allocations: 8.219 kB / 364.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.1507, allocations: 79.31 kB / 364.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.435e-06/0.1507, allocations: 7.938 kB / 364.8 MB, free: 7.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005826/0.1513, allocations: 249.1 kB / 365 MB, free: 6.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.1514, allocations: 166.2 kB / 365.2 MB, free: 6.586 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004058/0.1518, allocations: 354.9 kB / 365.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.1518, allocations: 33.7 kB / 365.6 MB, free: 6.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.152, allocations: 124.7 kB / 365.7 MB, free: 6.062 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.44e-05/0.152, allocations: 39.69 kB / 365.7 MB, free: 6.023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.035e-05/0.152, allocations: 8 kB / 365.7 MB, free: 6.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1522, allocations: 346.8 kB / 366.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.789e-05/0.1523, allocations: 40.45 kB / 366.1 MB, free: 5.629 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.1525, allocations: 183.4 kB / 366.3 MB, free: 5.387 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001343/0.1526, allocations: 63.92 kB / 366.4 MB, free: 5.324 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.1527, allocations: 7.938 kB / 366.4 MB, free: 5.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004174/0.1531, allocations: 233 kB / 366.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.1531, allocations: 8 kB / 366.6 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1531, allocations: 4.531 kB / 366.6 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.1531, allocations: 4 kB / 366.6 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.1533, allocations: 47.92 kB / 366.7 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.1533, allocations: 7.938 kB / 366.7 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.1535, allocations: 20.14 kB / 366.7 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.948e-05/0.1535, allocations: 16 kB / 366.7 MB, free: 4.977 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001828/0.1537, allocations: 176.5 kB / 366.9 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002823/0.154, allocations: 141.2 kB / 367 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.523e-05/0.1541, allocations: 41.78 kB / 367 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1541, allocations: 0 / 367 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1541, allocations: 4.469 kB / 367.1 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1541, allocations: 0 / 367.1 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002596/0.1544, allocations: 269.4 kB / 367.3 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1544, allocations: 0 / 367.3 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.1545, allocations: 27.92 kB / 367.3 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.224e-06/0.1545, allocations: 7.938 kB / 367.4 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.1546, allocations: 7.984 kB / 367.4 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.1546, allocations: 4 kB / 367.4 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1546, allocations: 0 / 367.4 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003907/0.155, allocations: 247 kB / 367.6 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.1551, allocations: 136.7 kB / 367.7 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.439e-05/0.1552, allocations: 7.984 kB / 367.7 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.292e-05/0.1552, allocations: 4 kB / 367.7 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.968e-05/0.1553, allocations: 11.98 kB / 367.8 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.1553, allocations: 12 kB / 367.8 MB, free: 3.797 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002755/0.1556, allocations: 253.9 kB / 368 MB, free: 3.547 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1556, allocations: 0 / 368 MB, free: 3.547 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003684/0.156, allocations: 51.89 kB / 368.1 MB, free: 3.496 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001138/0.1572, allocations: 433.8 kB / 368.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003398/0.1575, allocations: 159.7 kB / 368.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1575, allocations: 0 / 368.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.926e-05/0.1576, allocations: 27.98 kB / 368.7 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.1581, allocations: 116.5 kB / 368.8 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000951/0.1591, allocations: 0.4985 MB / 369.3 MB, free: 2.379 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.1595, allocations: 0.7719 MB / 370.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000113/0.1596, allocations: 34.22 kB / 370.1 MB, free: 1.547 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002101/0.1598, allocations: 27.44 kB / 370.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1599, allocations: 0 / 370.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of Templates: time 0.1858/0.3456, allocations: 3.215 MB / 373.3 MB, free: 18.53 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 -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/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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches