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.001243/0.001243, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001164/0.001164, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.629/1.629, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4186/0.4199, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.00393/0.4239, allocations: 1.959 MB / 402.7 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00218/0.4261, allocations: 1.196 MB / 403.9 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.4263, allocations: 7.938 kB / 403.9 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004091/0.4268, allocations: 67.61 kB / 403.9 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003299/0.4271, allocations: 103.6 kB / 404 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.4281, allocations: 304.6 kB / 404.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000298/0.4285, allocations: 211.4 kB / 404.6 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.4286, allocations: 45.67 kB / 404.6 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.4287, allocations: 87.62 kB / 404.7 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.4289, allocations: 103.6 kB / 404.8 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.384e-05/0.4289, allocations: 15.94 kB / 404.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002096/0.4292, allocations: 75.88 kB / 404.9 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.4293, allocations: 67.83 kB / 404.9 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.4294, allocations: 95.34 kB / 405 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004739/0.4299, allocations: 298.5 kB / 405.3 MB, free: 4.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.4299, allocations: 0 / 405.3 MB, free: 4.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4299, allocations: 0 / 405.3 MB, free: 4.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.4299, allocations: 7.938 kB / 405.3 MB, free: 4.242 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.000982/0.4309, allocations: 0.5853 MB / 405.9 MB, free: 3.602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001085/0.431, allocations: 15.89 kB / 405.9 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.432e-05/0.4311, allocations: 28.75 kB / 406 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.4315, allocations: 315.6 kB / 406.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.4315, allocations: 16.38 kB / 406.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.641e-05/0.4316, allocations: 16.12 kB / 406.3 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006318/0.4322, allocations: 327.8 kB / 406.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.4322, allocations: 4 kB / 406.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.4323, allocations: 0 / 406.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.4323, allocations: 4 kB / 406.6 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.4325, allocations: 67.95 kB / 406.7 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005586/0.433, allocations: 414.4 kB / 407.1 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003795/0.4334, allocations: 196 kB / 407.3 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.4336, allocations: 90.53 kB / 407.4 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.549e-05/0.4336, allocations: 7.938 kB / 407.4 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001868/0.4338, allocations: 79.38 kB / 407.5 MB, free: 1.887 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.683e-06/0.4338, allocations: 3.938 kB / 407.5 MB, free: 1.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.000566/0.4344, allocations: 253.3 kB / 407.7 MB, free: 1.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.4346, allocations: 174.3 kB / 407.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003828/0.435, allocations: 342.9 kB / 408.2 MB, free: 1.078 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.435, allocations: 33.7 kB / 408.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.4351, allocations: 136.6 kB / 408.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.023e-05/0.4352, allocations: 27.84 kB / 408.4 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.823e-05/0.4353, allocations: 57.86 kB / 408.5 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.4354, allocations: 346.8 kB / 408.8 MB, free: 468 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.4355, allocations: 40.45 kB / 408.8 MB, free: 428 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.4357, allocations: 185.7 kB / 409 MB, free: 180 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/0.4361, allocations: 215.5 kB / 409.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.4361, allocations: 0 / 409.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004116/0.4365, allocations: 241 kB / 409.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.4365, allocations: 11.94 kB / 409.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.4366, allocations: 4 kB / 409.5 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.4366, allocations: 4 kB / 409.5 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.4368, allocations: 40.45 kB / 409.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.821e-05/0.4368, allocations: 15.86 kB / 409.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.4369, allocations: 23.89 kB / 409.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.4369, allocations: 16 kB / 409.6 MB, free: 15.55 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.0002051/0.4372, allocations: 172 kB / 409.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.4374, allocations: 133.8 kB / 409.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.457e-05/0.4375, allocations: 33.81 kB / 409.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.4375, allocations: 0 / 409.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.4375, allocations: 7.938 kB / 409.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.4375, allocations: 4 kB / 409.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002692/0.4378, allocations: 269.5 kB / 410.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.4378, allocations: 7.984 kB / 410.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.4379, allocations: 27.92 kB / 410.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.4379, allocations: 0 / 410.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.438, allocations: 11.98 kB / 410.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.438, allocations: 7.922 kB / 410.3 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.438, allocations: 7.938 kB / 410.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004019/0.4384, allocations: 246.5 kB / 410.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.4385, allocations: 128.8 kB / 410.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.046e-05/0.4386, allocations: 8 kB / 410.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.801e-05/0.4387, allocations: 12.06 kB / 410.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.947e-05/0.4388, allocations: 11.92 kB / 410.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-05/0.4388, allocations: 11.98 kB / 410.7 MB, free: 14.37 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002513/0.4391, allocations: 245.9 kB / 410.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4391, allocations: 4 kB / 410.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003287/0.4394, allocations: 47.98 kB / 411 MB, free: 14.08 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.001039/0.4404, allocations: 423.3 kB / 411.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003541/0.4408, allocations: 164.7 kB / 411.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4408, allocations: 0 / 411.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.329e-05/0.4409, allocations: 31.98 kB / 411.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005238/0.4414, allocations: 130.3 kB / 411.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008437/0.4423, allocations: 449.7 kB / 412.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/0.4428, allocations: 0.7829 MB / 412.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.517e-05/0.4429, allocations: 30.52 kB / 412.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.833e-05/0.443, allocations: 31.42 kB / 413 MB, free: 12.15 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.443, allocations: 0 / 413 MB, free: 12.15 MB / 334.1 MB Notification: Performance of Templates: time 0.008927/0.4519, allocations: 3.514 MB / 416.5 MB, free: 8.66 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