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.0009/0.0009, allocations: 92.73 kB / 17.31 MB, free: 6.535 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.000968/0.0009681, allocations: 176 kB / 18.21 MB, free: 5.684 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.271/1.271, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.00023, allocations: 11.92 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07342/0.07366, allocations: 50.4 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002034/0.07572, allocations: 1.663 MB / 354.2 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.07749, allocations: 1.142 MB / 355.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.07761, allocations: 7.938 kB / 355.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002678/0.07789, allocations: 63.72 kB / 355.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.07812, allocations: 83.72 kB / 355.4 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007382/0.07887, allocations: 274.5 kB / 355.7 MB, free: 472 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002262/0.0791, allocations: 195.4 kB / 355.9 MB, free: 276 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.07922, allocations: 41.67 kB / 355.9 MB, free: 236 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.07934, allocations: 83.56 kB / 356 MB, free: 152 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.07948, allocations: 87.61 kB / 356.1 MB, free: 64 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.379e-05/0.07951, allocations: 4 kB / 356.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.07966, allocations: 67.91 kB / 356.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.364e-05/0.07974, allocations: 55.77 kB / 356.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.261e-05/0.07984, allocations: 117 kB / 356.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002273/0.08007, allocations: 203.8 kB / 356.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.08008, allocations: 0 / 356.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.08009, allocations: 0 / 356.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.0801, allocations: 4 kB / 356.6 MB, free: 15.61 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.0006747/0.08078, allocations: 0.539 MB / 357.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.08082, allocations: 12.03 kB / 357.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.035e-05/0.08089, allocations: 28.56 kB / 357.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.08122, allocations: 311.4 kB / 357.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.08125, allocations: 8.375 kB / 357.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.715e-05/0.08128, allocations: 16.12 kB / 357.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000533/0.08182, allocations: 334.4 kB / 357.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.08184, allocations: 0 / 357.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.08186, allocations: 0 / 357.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.08187, allocations: 4 kB / 357.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.08205, allocations: 75.88 kB / 357.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004819/0.08254, allocations: 422.2 kB / 358.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003454/0.0829, allocations: 188 kB / 358.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.08307, allocations: 102.5 kB / 358.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.0831, allocations: 0 / 358.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001493/0.08326, allocations: 83.31 kB / 358.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.08327, allocations: 0 / 358.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005111/0.08379, allocations: 249.4 kB / 358.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.736e-05/0.08388, allocations: 178.1 kB / 359.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000338/0.08423, allocations: 343 kB / 359.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.08426, allocations: 30.08 kB / 359.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.377e-05/0.08435, allocations: 136.5 kB / 359.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.061e-05/0.08439, allocations: 27.7 kB / 359.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.08443, allocations: 33.7 kB / 359.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.96e-05/0.08454, allocations: 342.7 kB / 360 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.08465, allocations: 44.44 kB / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.08483, allocations: 195.8 kB / 360.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000253/0.08509, allocations: 207.2 kB / 360.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.08511, allocations: 4 kB / 360.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003745/0.08549, allocations: 237.1 kB / 360.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.08551, allocations: 4 kB / 360.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.08552, allocations: 4 kB / 360.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.08554, allocations: 8 kB / 360.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.0857, allocations: 35.92 kB / 360.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.08572, allocations: 11.94 kB / 360.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.08584, allocations: 19.84 kB / 360.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.08587, allocations: 16.36 kB / 360.7 MB, free: 11.01 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.0001508/0.08603, allocations: 180.5 kB / 360.9 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.08623, allocations: 141.2 kB / 361 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.298e-05/0.08631, allocations: 33.73 kB / 361.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.08632, allocations: 4 kB / 361.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.08633, allocations: 4.25 kB / 361.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.08634, allocations: 0 / 361.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.08655, allocations: 273.4 kB / 361.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.08657, allocations: 4 kB / 361.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.0867, allocations: 23.98 kB / 361.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.08671, allocations: 4 kB / 361.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.08673, allocations: 8 kB / 361.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.08674, allocations: 0 / 361.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.08675, allocations: 7.875 kB / 361.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003676/0.08712, allocations: 242.4 kB / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.08724, allocations: 132.6 kB / 361.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.89e-05/0.08728, allocations: 8 kB / 361.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.32e-05/0.08738, allocations: 8 kB / 361.8 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.08744, allocations: 11.92 kB / 361.8 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.08747, allocations: 11.98 kB / 361.8 MB, free: 9.832 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000231/0.0877, allocations: 249.9 kB / 362 MB, free: 9.586 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08771, allocations: 0 / 362 MB, free: 9.586 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003232/0.08804, allocations: 48.08 kB / 362.1 MB, free: 9.539 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.0009316/0.08898, allocations: 441.4 kB / 362.5 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003032/0.0893, allocations: 152.7 kB / 362.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.08931, allocations: 0 / 362.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.927e-05/0.0894, allocations: 36.05 kB / 362.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005046/0.08991, allocations: 120.7 kB / 362.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007103/0.09064, allocations: 0.5419 MB / 363.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.09093, allocations: 0.7716 MB / 364.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.943e-05/0.09099, allocations: 23.44 kB / 364.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.091, allocations: 0 / 364.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of Templates: time 0.005362/0.09637, allocations: 3.561 MB / 367.7 MB, free: 4.004 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