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.001362/0.001362, allocations: 116.1 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.001459, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.594/1.594, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 59.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.3887, allocations: 50.54 MB / 409.2 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003879/0.3926, allocations: 1.969 MB / 411.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002528/0.3952, allocations: 1.336 MB / 412.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.3954, allocations: 3.938 kB / 412.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003965/0.3958, allocations: 75.59 kB / 412.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004104/0.3962, allocations: 139.4 kB / 412.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00086/0.3971, allocations: 270.8 kB / 413 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003113/0.3974, allocations: 223.4 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.3976, allocations: 48.28 kB / 413.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.3977, allocations: 99.61 kB / 413.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.3979, allocations: 107.5 kB / 413.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.332e-05/0.3979, allocations: 12 kB / 413.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.3981, allocations: 71.95 kB / 413.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.456e-05/0.3982, allocations: 75.69 kB / 413.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000145/0.3984, allocations: 99.34 kB / 413.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003873/0.3988, allocations: 298.8 kB / 414 MB, free: 12.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3988, allocations: 8 kB / 414 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3988, allocations: 0 / 414 MB, free: 12.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.3988, allocations: 4 kB / 414.1 MB, free: 12.8 MB / 334.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.0009601/0.3998, allocations: 0.5868 MB / 414.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.3998, allocations: 16.02 kB / 414.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.601e-05/0.3999, allocations: 28.56 kB / 414.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004191/0.4003, allocations: 311.5 kB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.4004, allocations: 8.375 kB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.721e-05/0.4004, allocations: 16.12 kB / 415 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005758/0.401, allocations: 326.8 kB / 415.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.401, allocations: 0 / 415.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.379e-05/0.401, allocations: 11.97 kB / 415.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.4011, allocations: 4 kB / 415.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001703/0.4012, allocations: 71.84 kB / 415.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005744/0.4018, allocations: 418.3 kB / 415.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000382/0.4022, allocations: 195.8 kB / 416 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.4024, allocations: 94.66 kB / 416.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.908e-05/0.4024, allocations: 4 kB / 416.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.4026, allocations: 75.38 kB / 416.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.784e-06/0.4026, allocations: 4 kB / 416.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005687/0.4032, allocations: 253.4 kB / 416.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.4033, allocations: 170.1 kB / 416.6 MB, free: 9.984 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003862/0.4037, allocations: 354.9 kB / 416.9 MB, free: 9.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.4038, allocations: 33.7 kB / 417 MB, free: 9.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.4039, allocations: 136.9 kB / 417.1 MB, free: 9.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.414e-05/0.4039, allocations: 27.7 kB / 417.1 MB, free: 9.426 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.394e-05/0.404, allocations: 61.92 kB / 417.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4042, allocations: 338.8 kB / 417.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.4043, allocations: 48.38 kB / 417.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.4045, allocations: 182.9 kB / 417.8 MB, free: 8.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002931/0.4048, allocations: 215.2 kB / 418 MB, free: 8.465 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.4048, allocations: 256 / 418 MB, free: 8.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003824/0.4052, allocations: 240.9 kB / 418.2 MB, free: 8.223 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.4052, allocations: 8 kB / 418.2 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.4052, allocations: 4 kB / 418.2 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.4052, allocations: 4.531 kB / 418.2 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.4054, allocations: 51.91 kB / 418.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.4054, allocations: 11.88 kB / 418.3 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.4056, allocations: 15.94 kB / 418.3 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.4056, allocations: 12 kB / 418.3 MB, free: 8.117 MB / 334.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.0001797/0.4058, allocations: 179.9 kB / 418.5 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002046/0.406, allocations: 141.2 kB / 418.6 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.618e-05/0.4061, allocations: 33.78 kB / 418.7 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.738e-06/0.4061, allocations: 8 kB / 418.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.4061, allocations: 3.938 kB / 418.7 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.4061, allocations: 7.922 kB / 418.7 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.4064, allocations: 269.4 kB / 418.9 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4064, allocations: 0 / 418.9 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.4065, allocations: 31.92 kB / 419 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.4065, allocations: 0 / 419 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.4065, allocations: 8 kB / 419 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.4065, allocations: 0 / 419 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.4066, allocations: 3.984 kB / 419 MB, free: 7.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004038/0.407, allocations: 253.9 kB / 419.2 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.4071, allocations: 128.6 kB / 419.4 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.704e-05/0.4072, allocations: 11.98 kB / 419.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.629e-05/0.4073, allocations: 4 kB / 419.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.083e-05/0.4073, allocations: 15.92 kB / 419.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.4073, allocations: 4.062 kB / 419.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002861/0.4076, allocations: 261.9 kB / 419.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4077, allocations: 0 / 419.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.408, allocations: 44 kB / 419.7 MB, free: 6.629 MB / 334.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.001018/0.409, allocations: 429.4 kB / 420.1 MB, free: 6.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003603/0.4094, allocations: 164.2 kB / 420.3 MB, free: 6.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4094, allocations: 0 / 420.3 MB, free: 6.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.298e-05/0.4095, allocations: 27.98 kB / 420.3 MB, free: 6.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005346/0.41, allocations: 131.9 kB / 420.4 MB, free: 6.023 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007449/0.4108, allocations: 450.8 kB / 420.9 MB, free: 5.547 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.4112, allocations: 0.7792 MB / 421.6 MB, free: 4.738 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.735e-05/0.4113, allocations: 34.28 kB / 421.7 MB, free: 4.703 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.778e-05/0.4114, allocations: 23.44 kB / 421.7 MB, free: 4.68 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4114, allocations: 0 / 421.7 MB, free: 4.68 MB / 334.1 MB Notification: Performance of Templates: time 0.00744/0.4189, allocations: 3.544 MB / 425.2 MB, free: 1.16 MB / 334.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