Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 108.6 kB / 16.62 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009854/0.0009854, allocations: 47.86 kB / 300.1 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1104, allocations: 49.44 MB / 349.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004601/0.1151, allocations: 2.01 MB / 351.6 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.1171, allocations: 1.169 MB / 352.7 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.1173, allocations: 4 kB / 352.8 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003853/0.1177, allocations: 63.73 kB / 352.8 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002719/0.118, allocations: 87.7 kB / 352.9 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008669/0.1189, allocations: 272.6 kB / 353.2 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003558/0.1192, allocations: 219.4 kB / 353.4 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.1194, allocations: 49.64 kB / 353.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.1195, allocations: 91.62 kB / 353.5 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.1197, allocations: 111.5 kB / 353.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.202e-05/0.1197, allocations: 12 kB / 353.6 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000233/0.12, allocations: 67.91 kB / 353.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.317e-05/0.1201, allocations: 63.81 kB / 353.8 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.1202, allocations: 111.3 kB / 353.9 MB, free: 432 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003595/0.1206, allocations: 279.3 kB / 354.2 MB, free: 152 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1206, allocations: 0 / 354.2 MB, free: 152 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1206, allocations: 0 / 354.2 MB, free: 152 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1206, allocations: 0 / 354.2 MB, free: 152 kB / 286.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.0008607/0.1215, allocations: 0.5817 MB / 354.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.1215, allocations: 15.88 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.203e-05/0.1216, allocations: 28.66 kB / 354.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.1219, allocations: 311.3 kB / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.122, allocations: 16.38 kB / 355.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.499e-05/0.122, allocations: 16.12 kB / 355.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005983/0.1226, allocations: 316.9 kB / 355.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1226, allocations: 7.938 kB / 355.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.1226, allocations: 4 kB / 355.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1227, allocations: 4 kB / 355.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.1228, allocations: 63.97 kB / 355.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005238/0.1234, allocations: 418.2 kB / 355.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003618/0.1237, allocations: 199.9 kB / 356.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.1239, allocations: 94.53 kB / 356.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.17e-05/0.1239, allocations: 7.938 kB / 356.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.1242, allocations: 75.38 kB / 356.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.633e-06/0.1242, allocations: 4 kB / 356.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005514/0.1247, allocations: 253.3 kB / 356.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.1248, allocations: 174.2 kB / 356.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003232/0.1252, allocations: 342.9 kB / 357 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.1252, allocations: 29.7 kB / 357.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.945e-05/0.1253, allocations: 132.7 kB / 357.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.233e-05/0.1253, allocations: 23.7 kB / 357.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.031e-05/0.1254, allocations: 57.94 kB / 357.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1256, allocations: 338.8 kB / 357.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.821e-05/0.1257, allocations: 48.38 kB / 357.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.1258, allocations: 190.9 kB / 357.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.1262, allocations: 207.2 kB / 358 MB, free: 11.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1262, allocations: 3.938 kB / 358 MB, free: 11.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003817/0.1266, allocations: 241.1 kB / 358.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.1266, allocations: 8 kB / 358.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1266, allocations: 4 kB / 358.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.1266, allocations: 8.531 kB / 358.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.1268, allocations: 39.92 kB / 358.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.1268, allocations: 15.88 kB / 358.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.1269, allocations: 23.83 kB / 358.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.1269, allocations: 12 kB / 358.4 MB, free: 11.48 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.0001605/0.1271, allocations: 176.5 kB / 358.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.1273, allocations: 145.6 kB / 358.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.951e-05/0.1274, allocations: 37.73 kB / 358.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1274, allocations: 0 / 358.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.457e-06/0.1274, allocations: 11.94 kB / 358.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1274, allocations: 0 / 358.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002337/0.1277, allocations: 257.4 kB / 359 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.1277, allocations: 4 kB / 359 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.1278, allocations: 31.92 kB / 359 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1278, allocations: 0 / 359 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.1279, allocations: 8 kB / 359 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.1279, allocations: 4 kB / 359 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1279, allocations: 3.938 kB / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003691/0.1282, allocations: 242.4 kB / 359.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.1284, allocations: 132.6 kB / 359.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.2e-05/0.1284, allocations: 8 kB / 359.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.019e-05/0.1285, allocations: 8 kB / 359.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.017e-05/0.1286, allocations: 15.92 kB / 359.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.1286, allocations: 8 kB / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002781/0.1289, allocations: 249.9 kB / 359.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1289, allocations: 0 / 359.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.1292, allocations: 48 kB / 359.7 MB, free: 10.01 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.000973/0.1302, allocations: 429.2 kB / 360.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003598/0.1306, allocations: 172.3 kB / 360.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1306, allocations: 0 / 360.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.166e-05/0.1307, allocations: 31.92 kB / 360.4 MB, free: 9.535 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005117/0.1312, allocations: 136 kB / 360.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007936/0.132, allocations: 0.5102 MB / 361 MB, free: 8.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.1325, allocations: 0.7753 MB / 361.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.1326, allocations: 34.28 kB / 361.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.301e-05/0.1327, allocations: 27.42 kB / 361.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1327, allocations: 0 / 361.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of Templates: time 0.007348/0.14, allocations: 3.454 MB / 365.3 MB, free: 4.582 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches