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.001262/0.001262, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001389/0.001389, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.425/1.425, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 46.5 kB / 301.3 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09802/0.09907, allocations: 49.45 MB / 350.7 MB, free: 4.391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003877/0.103, allocations: 1.954 MB / 352.7 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.1051, allocations: 1.192 MB / 353.9 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002292/0.1054, allocations: 4 kB / 353.9 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003839/0.1058, allocations: 71.59 kB / 354 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00036/0.1062, allocations: 95.58 kB / 354 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.1073, allocations: 309.1 kB / 354.3 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003607/0.1077, allocations: 215.4 kB / 354.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.1078, allocations: 41.66 kB / 354.6 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.108, allocations: 91.62 kB / 354.7 MB, free: 420 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.1082, allocations: 103.5 kB / 354.8 MB, free: 316 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.222e-05/0.1082, allocations: 12 kB / 354.8 MB, free: 304 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001797/0.1084, allocations: 71.95 kB / 354.9 MB, free: 232 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.878e-05/0.1085, allocations: 63.77 kB / 354.9 MB, free: 168 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.1086, allocations: 103.3 kB / 355 MB, free: 64 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004248/0.109, allocations: 291.3 kB / 355.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.1091, allocations: 0 / 355.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1091, allocations: 0 / 355.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.1091, allocations: 0 / 355.3 MB, free: 15.78 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.0009649/0.1101, allocations: 0.5739 MB / 355.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.1101, allocations: 11.89 kB / 355.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.156e-05/0.1102, allocations: 28.66 kB / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.1106, allocations: 311.3 kB / 356.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.1106, allocations: 16.38 kB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.911e-05/0.1107, allocations: 16.12 kB / 356.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005978/0.1113, allocations: 321.4 kB / 356.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.1113, allocations: 0 / 356.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/0.1113, allocations: 12 kB / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.1113, allocations: 4 kB / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.1115, allocations: 71.89 kB / 356.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005724/0.1121, allocations: 418.2 kB / 357.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003819/0.1125, allocations: 200 kB / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.1127, allocations: 90.53 kB / 357.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.1127, allocations: 8 kB / 357.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001818/0.1129, allocations: 83.31 kB / 357.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.615e-06/0.1129, allocations: 4 kB / 357.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005715/0.1135, allocations: 253 kB / 357.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.1136, allocations: 166.4 kB / 357.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003514/0.114, allocations: 346.9 kB / 358.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.114, allocations: 29.7 kB / 358.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.68e-05/0.1141, allocations: 136.7 kB / 358.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.476e-05/0.1141, allocations: 23.7 kB / 358.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.234e-05/0.1142, allocations: 57.94 kB / 358.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1144, allocations: 342.8 kB / 358.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.1145, allocations: 44.44 kB / 358.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.1147, allocations: 191.2 kB / 359 MB, free: 11.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002822/0.115, allocations: 207.2 kB / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.115, allocations: 0 / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004031/0.1154, allocations: 236.9 kB / 359.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1154, allocations: 11.94 kB / 359.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.1154, allocations: 4 kB / 359.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.1155, allocations: 4.531 kB / 359.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.1156, allocations: 48.22 kB / 359.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.1156, allocations: 15.88 kB / 359.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.1158, allocations: 23.84 kB / 359.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.1158, allocations: 12 kB / 359.6 MB, free: 11.11 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.0001748/0.116, allocations: 179.9 kB / 359.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002082/0.1162, allocations: 133.3 kB / 359.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.098e-05/0.1163, allocations: 33.73 kB / 359.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1163, allocations: 0 / 359.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.1163, allocations: 11.94 kB / 359.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.1163, allocations: 4.453 kB / 359.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002337/0.1166, allocations: 261.4 kB / 360.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.575e-06/0.1166, allocations: 4 kB / 360.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.1167, allocations: 31.91 kB / 360.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1167, allocations: 0 / 360.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.1168, allocations: 11.94 kB / 360.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.1168, allocations: 4 kB / 360.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.1168, allocations: 3.938 kB / 360.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003849/0.1172, allocations: 234.4 kB / 360.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.1173, allocations: 128.6 kB / 360.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.489e-05/0.1173, allocations: 8 kB / 360.6 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.803e-05/0.1174, allocations: 11.98 kB / 360.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/0.1175, allocations: 15.92 kB / 360.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.331e-05/0.1176, allocations: 11.94 kB / 360.6 MB, free: 9.934 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002432/0.1178, allocations: 249.9 kB / 360.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1178, allocations: 0 / 360.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003476/0.1182, allocations: 52 kB / 360.9 MB, free: 9.637 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.001031/0.1192, allocations: 429.9 kB / 361.3 MB, free: 9.363 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003794/0.1196, allocations: 164.3 kB / 361.5 MB, free: 9.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1196, allocations: 0 / 361.5 MB, free: 9.203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.477e-05/0.1197, allocations: 27.98 kB / 361.5 MB, free: 9.176 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005337/0.1202, allocations: 123.9 kB / 361.6 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007963/0.1211, allocations: 0.4962 MB / 362.1 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/0.1215, allocations: 0.7714 MB / 362.9 MB, free: 7.727 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.153e-05/0.1216, allocations: 23.44 kB / 362.9 MB, free: 7.703 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1216, allocations: 4 kB / 362.9 MB, free: 7.699 MB / 302.1 MB Notification: Performance of Templates: time 0.006611/0.1282, allocations: 3.616 MB / 366.6 MB, free: 4.098 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/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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches