Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00194/0.00194, allocations: 113.6 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002031/0.002031, allocations: 208.6 kB / 18.79 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.68/1.68, allocations: 230.4 MB / 250 MB, free: 9.098 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 71.83 kB / 367.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3902/0.3921, allocations: 53.29 MB / 420.7 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.00427/0.3964, allocations: 1.785 MB / 422.4 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.3977, allocations: 0.6077 MB / 423 MB, free: 5.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.3978, allocations: 7.938 kB / 423.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.99e-05/0.3978, allocations: 7.875 kB / 423.1 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.398, allocations: 15.8 kB / 423.1 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004944/0.3985, allocations: 95.77 kB / 423.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001748/0.3987, allocations: 91.7 kB / 423.3 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.3988, allocations: 25.42 kB / 423.3 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.399, allocations: 47.84 kB / 423.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.942e-05/0.3991, allocations: 55.64 kB / 423.4 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.3991, allocations: 12 kB / 423.4 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.711e-05/0.3991, allocations: 8 kB / 423.4 MB, free: 5.594 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.215e-05/0.3992, allocations: 27.91 kB / 423.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.403e-05/0.3993, allocations: 47.67 kB / 423.5 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.3995, allocations: 115.3 kB / 423.6 MB, free: 5.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3995, allocations: 0 / 423.6 MB, free: 5.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3995, allocations: 0 / 423.6 MB, free: 5.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.3996, allocations: 0 / 423.6 MB, free: 5.41 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007429/0.4003, allocations: 434.8 kB / 424 MB, free: 4.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.4003, allocations: 12.03 kB / 424 MB, free: 4.926 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.4005, allocations: 24.83 kB / 424.1 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.4008, allocations: 220.1 kB / 424.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.071e-05/0.4009, allocations: 8.375 kB / 424.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.45e-05/0.4009, allocations: 12.38 kB / 424.3 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005389/0.4014, allocations: 278.5 kB / 424.6 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.4014, allocations: 0 / 424.6 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.4015, allocations: 4 kB / 424.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.4015, allocations: 0 / 424.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001438/0.4016, allocations: 55.89 kB / 424.6 MB, free: 4.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004265/0.402, allocations: 306.5 kB / 424.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.4023, allocations: 127.7 kB / 425 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.4024, allocations: 66.66 kB / 425.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.566e-05/0.4025, allocations: 11.98 kB / 425.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.4025, allocations: 38.56 kB / 425.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.162e-06/0.4025, allocations: 0 / 425.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004296/0.4029, allocations: 173.6 kB / 425.3 MB, free: 3.465 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.923e-05/0.403, allocations: 114.8 kB / 425.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.4032, allocations: 154.2 kB / 425.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.4032, allocations: 33.77 kB / 425.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.214e-05/0.4033, allocations: 104 kB / 425.7 MB, free: 3.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.999e-05/0.4033, allocations: 15.91 kB / 425.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.36e-05/0.4034, allocations: 37.7 kB / 425.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.4035, allocations: 330.8 kB / 426.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.995e-05/0.4036, allocations: 23.98 kB / 426.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.4037, allocations: 133.2 kB / 426.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002291/0.404, allocations: 174.3 kB / 426.4 MB, free: 2.207 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.404, allocations: 0 / 426.4 MB, free: 2.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002975/0.4043, allocations: 185.2 kB / 426.6 MB, free: 2.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.4043, allocations: 8.531 kB / 426.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4043, allocations: 4 kB / 426.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.4043, allocations: 8 kB / 426.6 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.4044, allocations: 27.92 kB / 426.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.4045, allocations: 8.312 kB / 426.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.757e-05/0.4045, allocations: 15.89 kB / 426.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.4046, allocations: 8 kB / 426.7 MB, free: 1.941 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 ($CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * 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 (21): * Single equations (assignments): 21 * 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.000136/0.4047, allocations: 147.8 kB / 426.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.4049, allocations: 117.9 kB / 426.9 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.744e-05/0.405, allocations: 24.7 kB / 427 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.405, allocations: 4 kB / 427 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.405, allocations: 8 kB / 427 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.405, allocations: 11.86 kB / 427 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.4052, allocations: 189.6 kB / 427.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.4052, allocations: 0 / 427.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.4053, allocations: 31.92 kB / 427.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.4053, allocations: 0 / 427.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.4053, allocations: 7.984 kB / 427.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.4053, allocations: 0 / 427.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.4053, allocations: 4 kB / 427.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003327/0.4057, allocations: 263.4 kB / 427.5 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.565e-05/0.4058, allocations: 108.9 kB / 427.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.4058, allocations: 4 kB / 427.6 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.808e-05/0.4059, allocations: 4 kB / 427.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.15e-05/0.4059, allocations: 7.938 kB / 427.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.4059, allocations: 11.98 kB / 427.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.4061, allocations: 116.1 kB / 427.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4061, allocations: 0 / 427.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002917/0.4063, allocations: 24 kB / 427.7 MB, free: 0.7734 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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * 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 (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.0001488/0.4065, allocations: 99.25 kB / 427.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003036/0.4068, allocations: 108.4 kB / 427.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4068, allocations: 0 / 427.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.952e-05/0.4068, allocations: 11.94 kB / 428 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/0.4073, allocations: 79.89 kB / 428 MB, free: 484 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005626/0.4079, allocations: 266.1 kB / 428.3 MB, free: 184 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/0.4083, allocations: 0.7201 MB / 429 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.81e-05/0.4083, allocations: 13.8 kB / 429 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.4084, allocations: 19.44 kB / 429.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4084, allocations: 0 / 429.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of Templates: time 0.004487/0.4128, allocations: 1.241 MB / 430.3 MB, free: 14.17 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches