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.001025/0.001025, allocations: 95.09 kB / 18 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 203 kB / 18.93 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.7 MB / 247.5 MB, free: 11.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.0002591, allocations: 4 kB / 308.4 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1167, allocations: 51.52 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003341/0.1201, allocations: 1.677 MB / 361.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002994/0.1232, allocations: 1.293 MB / 362.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002707/0.1235, allocations: 7.938 kB / 362.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004909/0.124, allocations: 71.72 kB / 363 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004886/0.1245, allocations: 107.6 kB / 363.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.1256, allocations: 243 kB / 363.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003856/0.126, allocations: 203.4 kB / 363.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.1262, allocations: 60.14 kB / 363.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.1264, allocations: 75.64 kB / 363.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.1266, allocations: 103.5 kB / 363.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.098e-05/0.1266, allocations: 8 kB / 363.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.1268, allocations: 55.97 kB / 363.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.1269, allocations: 63.75 kB / 363.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.1271, allocations: 113.1 kB / 364 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.1275, allocations: 215.8 kB / 364.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.139e-05/0.1275, allocations: 8 kB / 364.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.449e-06/0.1276, allocations: 0 / 364.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.1276, allocations: 3.938 kB / 364.2 MB, free: 9 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.001276/0.1289, allocations: 0.5312 MB / 364.7 MB, free: 8.414 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/0.1289, allocations: 8.031 kB / 364.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.1291, allocations: 32.66 kB / 364.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000575/0.1296, allocations: 311.4 kB / 365.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.1297, allocations: 8.375 kB / 365.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.979e-05/0.1297, allocations: 16.12 kB / 365.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007386/0.1305, allocations: 328.3 kB / 365.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.1305, allocations: 0 / 365.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.1306, allocations: 4 kB / 365.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.1306, allocations: 4 kB / 365.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.1308, allocations: 71.89 kB / 365.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007862/0.1316, allocations: 426.2 kB / 365.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004224/0.132, allocations: 192 kB / 366.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.1322, allocations: 90.53 kB / 366.2 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.704e-05/0.1323, allocations: 8 kB / 366.2 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.1325, allocations: 79.31 kB / 366.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 3.086e-06/0.1325, allocations: 0 / 366.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006266/0.1331, allocations: 253.4 kB / 366.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/0.1333, allocations: 174.6 kB / 366.7 MB, free: 6.238 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004303/0.1337, allocations: 355 kB / 367 MB, free: 5.879 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.1338, allocations: 37.64 kB / 367.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.1339, allocations: 136.5 kB / 367.2 MB, free: 5.699 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.317e-05/0.1339, allocations: 27.7 kB / 367.2 MB, free: 5.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.774e-05/0.134, allocations: 29.7 kB / 367.3 MB, free: 5.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.1342, allocations: 342.8 kB / 367.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.1343, allocations: 44.44 kB / 367.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.1345, allocations: 192 kB / 367.8 MB, free: 5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.1348, allocations: 211.2 kB / 368 MB, free: 4.738 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.1349, allocations: 4 kB / 368 MB, free: 4.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000483/0.1353, allocations: 237.4 kB / 368.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.1354, allocations: 4 kB / 368.3 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.1354, allocations: 4.078 kB / 368.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.1354, allocations: 8 kB / 368.3 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.1356, allocations: 39.92 kB / 368.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.052e-05/0.1356, allocations: 11.92 kB / 368.3 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.1358, allocations: 23.83 kB / 368.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.1358, allocations: 15.94 kB / 368.4 MB, free: 4.391 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.0002138/0.1361, allocations: 180 kB / 368.5 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000273/0.1363, allocations: 137.3 kB / 368.7 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.42e-05/0.1365, allocations: 37.83 kB / 368.7 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.1365, allocations: 7.984 kB / 368.7 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.1365, allocations: 3.938 kB / 368.7 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.1365, allocations: 0 / 368.7 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000324/0.1368, allocations: 269.4 kB / 369 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.1368, allocations: 0 / 369 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.137, allocations: 27.98 kB / 369 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.137, allocations: 4 kB / 369 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.137, allocations: 15.92 kB / 369 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.137, allocations: 320 / 369 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.137, allocations: 7.938 kB / 369 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004152/0.1375, allocations: 244.2 kB / 369.3 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.1376, allocations: 124.7 kB / 369.4 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.838e-05/0.1377, allocations: 12 kB / 369.4 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.894e-05/0.1378, allocations: 15.92 kB / 369.4 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.803e-05/0.1379, allocations: 12.02 kB / 369.4 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.742e-05/0.1379, allocations: 11.94 kB / 369.5 MB, free: 3.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003053/0.1382, allocations: 253.9 kB / 369.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1382, allocations: 3.938 kB / 369.7 MB, free: 2.941 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003596/0.1386, allocations: 52 kB / 369.8 MB, free: 2.891 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.001133/0.1397, allocations: 423.5 kB / 370.2 MB, free: 2.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003792/0.1401, allocations: 151.7 kB / 370.3 MB, free: 2.461 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1401, allocations: 1.062 kB / 370.3 MB, free: 2.461 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.986e-05/0.1402, allocations: 27.92 kB / 370.3 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000578/0.1408, allocations: 121.9 kB / 370.5 MB, free: 2.312 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009788/0.1418, allocations: 0.5577 MB / 371 MB, free: 1.719 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.1422, allocations: 0.7716 MB / 371.8 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.024e-05/0.1423, allocations: 27.44 kB / 371.8 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1423, allocations: 3.938 kB / 371.8 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of Templates: time 0.2195/0.3619, allocations: 3.614 MB / 375.4 MB, free: 18.39 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/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