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.001478/0.001478, allocations: 111.6 kB / 17.06 MB, free: 5.973 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.001587/0.001588, allocations: 200 kB / 18.01 MB, free: 5.055 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.52/1.52, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 51.91 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4121/0.414, allocations: 49.42 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004668/0.4188, allocations: 1.964 MB / 402.7 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002142/0.4209, allocations: 1.2 MB / 403.9 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.4211, allocations: 4 kB / 403.9 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004094/0.4215, allocations: 75.59 kB / 404 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003067/0.4218, allocations: 99.52 kB / 404 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008825/0.4227, allocations: 296.5 kB / 404.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002914/0.423, allocations: 215.4 kB / 404.5 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.4232, allocations: 45.66 kB / 404.6 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.4233, allocations: 95.61 kB / 404.7 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.4235, allocations: 103.5 kB / 404.8 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.197e-05/0.4235, allocations: 12 kB / 404.8 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001692/0.4237, allocations: 71.95 kB / 404.9 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.515e-05/0.4238, allocations: 67.77 kB / 404.9 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.4239, allocations: 103.3 kB / 405 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004023/0.4243, allocations: 292.1 kB / 405.3 MB, free: 4.258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.4244, allocations: 0 / 405.3 MB, free: 4.258 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4244, allocations: 0 / 405.3 MB, free: 4.258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.4244, allocations: 8 kB / 405.3 MB, free: 4.25 MB / 318.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.0009296/0.4253, allocations: 0.5726 MB / 405.9 MB, free: 3.625 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.4254, allocations: 11.89 kB / 405.9 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.823e-05/0.4255, allocations: 36.55 kB / 405.9 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003802/0.4258, allocations: 307.5 kB / 406.2 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.4259, allocations: 12.38 kB / 406.3 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.881e-05/0.4259, allocations: 20.12 kB / 406.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006452/0.4266, allocations: 327.3 kB / 406.6 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.4266, allocations: 0 / 406.6 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.4266, allocations: 4 kB / 406.6 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.4266, allocations: 4 kB / 406.6 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.4268, allocations: 71.89 kB / 406.7 MB, free: 2.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005349/0.4273, allocations: 418.4 kB / 407.1 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.4278, allocations: 195.9 kB / 407.3 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.4279, allocations: 90.55 kB / 407.4 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.428, allocations: 7.984 kB / 407.4 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001686/0.4281, allocations: 75.33 kB / 407.4 MB, free: 1.914 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.783e-06/0.4281, allocations: 0 / 407.4 MB, free: 1.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005521/0.4287, allocations: 261.2 kB / 407.7 MB, free: 1.652 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.4288, allocations: 174.5 kB / 407.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003304/0.4292, allocations: 343 kB / 408.2 MB, free: 1.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.4292, allocations: 33.64 kB / 408.2 MB, free: 1.062 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.2e-05/0.4293, allocations: 132.6 kB / 408.4 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.592e-05/0.4293, allocations: 39.62 kB / 408.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.592e-05/0.4294, allocations: 49.94 kB / 408.5 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4296, allocations: 346.8 kB / 408.8 MB, free: 492 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-05/0.4297, allocations: 40.44 kB / 408.8 MB, free: 452 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002006/0.4299, allocations: 187.6 kB / 409 MB, free: 200 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000274/0.4302, allocations: 207.2 kB / 409.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4302, allocations: 0 / 409.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004068/0.4306, allocations: 237 kB / 409.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.4306, allocations: 8 kB / 409.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/0.4306, allocations: 4 kB / 409.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.4307, allocations: 4 kB / 409.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.4308, allocations: 43.84 kB / 409.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.4309, allocations: 16.45 kB / 409.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.431, allocations: 23.84 kB / 409.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.431, allocations: 12 kB / 409.6 MB, free: 15.59 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.0001746/0.4312, allocations: 176 kB / 409.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001943/0.4314, allocations: 137.2 kB / 409.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.924e-05/0.4315, allocations: 33.73 kB / 409.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4315, allocations: 4.469 kB / 409.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.4315, allocations: 3.938 kB / 409.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.4315, allocations: 7.984 kB / 409.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.4317, allocations: 265.5 kB / 410.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4318, allocations: 320 / 410.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.4319, allocations: 35.86 kB / 410.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.4319, allocations: 3.984 kB / 410.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.4319, allocations: 12 kB / 410.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.4319, allocations: 0 / 410.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.432, allocations: 3.938 kB / 410.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000393/0.4323, allocations: 252 kB / 410.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.4325, allocations: 120.8 kB / 410.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.131e-05/0.4325, allocations: 11.94 kB / 410.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.409e-05/0.4326, allocations: 3.984 kB / 410.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.37e-05/0.4327, allocations: 15.92 kB / 410.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.4327, allocations: 8 kB / 410.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002344/0.433, allocations: 253.9 kB / 410.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.433, allocations: 0 / 410.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003158/0.4333, allocations: 51.94 kB / 410.9 MB, free: 14.12 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.0009612/0.4343, allocations: 434.1 kB / 411.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003489/0.4346, allocations: 148.8 kB / 411.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4346, allocations: 4.062 kB / 411.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.528e-05/0.4347, allocations: 31.92 kB / 411.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005066/0.4352, allocations: 126.5 kB / 411.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007056/0.4359, allocations: 453.5 kB / 412.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.4363, allocations: 0.7751 MB / 412.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.952e-05/0.4364, allocations: 38.48 kB / 412.9 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.067e-05/0.4365, allocations: 23.44 kB / 412.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4365, allocations: 7.938 kB / 412.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of Templates: time 0.00728/0.4438, allocations: 3.511 MB / 416.5 MB, free: 8.703 MB / 334.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