Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008837/0.0008838, allocations: 92.22 kB / 17.31 MB, free: 5.59 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.0009473/0.0009473, allocations: 180.8 kB / 18.21 MB, free: 5.191 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.259/1.259, allocations: 223.3 MB / 242.2 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002282/0.0002281, allocations: 8 kB / 302.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07088/0.07113, allocations: 50.42 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.001511/0.07265, allocations: 1.315 MB / 353.8 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007053/0.07337, allocations: 0.491 MB / 354.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.874e-05/0.07345, allocations: 0 / 354.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.143e-05/0.07349, allocations: 7.922 kB / 354.3 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001105/0.07361, allocations: 11.92 kB / 354.3 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.07385, allocations: 43.89 kB / 354.4 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.739e-05/0.07394, allocations: 51.8 kB / 354.4 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.811e-05/0.07404, allocations: 19.98 kB / 354.4 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.811e-05/0.07411, allocations: 27.8 kB / 354.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.518e-05/0.07418, allocations: 23.86 kB / 354.5 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.537e-05/0.0742, allocations: 0 / 354.5 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.027e-05/0.07421, allocations: 0 / 354.5 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.135e-05/0.07426, allocations: 11.92 kB / 354.5 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.174e-05/0.07431, allocations: 53.52 kB / 354.6 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.988e-05/0.07438, allocations: 43.91 kB / 354.6 MB, free: 1.574 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.07439, allocations: 4 kB / 354.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.0744, allocations: 0 / 354.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.856e-06/0.0744, allocations: 0 / 354.6 MB, free: 1.57 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000375/0.07478, allocations: 371.4 kB / 355 MB, free: 1.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.07482, allocations: 8.031 kB / 355 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.252e-05/0.07486, allocations: 12.84 kB / 355 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.07504, allocations: 204.6 kB / 355.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-06/0.07505, allocations: 384 / 355.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.476e-05/0.07508, allocations: 16.12 kB / 355.2 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002598/0.07534, allocations: 126.7 kB / 355.3 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.07536, allocations: 0 / 355.3 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.07538, allocations: 4 kB / 355.3 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.07539, allocations: 4 kB / 355.3 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001037/0.0755, allocations: 31.92 kB / 355.4 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003066/0.07582, allocations: 291.3 kB / 355.6 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001246/0.07595, allocations: 94.36 kB / 355.7 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.108e-05/0.07604, allocations: 55.53 kB / 355.8 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.608e-05/0.07607, allocations: 0 / 355.8 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.0761, allocations: 42.5 kB / 355.8 MB, free: 112 kB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 9.72e-07/0.0761, allocations: 0 / 355.8 MB, free: 112 kB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002981/0.0764, allocations: 109.7 kB / 355.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/0.07648, allocations: 140.5 kB / 356.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.0766, allocations: 143.5 kB / 356.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.07662, allocations: 25.7 kB / 356.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.39e-05/0.07667, allocations: 96.39 kB / 356.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.581e-05/0.07669, allocations: 7.906 kB / 356.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.07672, allocations: 17.55 kB / 356.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.53e-05/0.07681, allocations: 322.8 kB / 356.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.173e-05/0.07687, allocations: 11.98 kB / 356.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.947e-05/0.07694, allocations: 40.3 kB / 356.7 MB, free: 15.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001166/0.07706, allocations: 76.14 kB / 356.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.07707, allocations: 0 / 356.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001582/0.07724, allocations: 77.62 kB / 356.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.07726, allocations: 11.98 kB / 356.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.07727, allocations: 0 / 356.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.07729, allocations: 0 / 356.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.212e-05/0.07738, allocations: 15.94 kB / 356.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.07739, allocations: 0 / 356.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.612e-05/0.07745, allocations: 23.98 kB / 356.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.07747, allocations: 4 kB / 356.9 MB, free: 14.9 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 7.448e-05/0.07755, allocations: 121.8 kB / 357.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.445e-05/0.07764, allocations: 57.53 kB / 357.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.07768, allocations: 11.88 kB / 357.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.07769, allocations: 0 / 357.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.0777, allocations: 4 kB / 357.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.07771, allocations: 7.922 kB / 357.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001747/0.07789, allocations: 177.7 kB / 357.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.0779, allocations: 0 / 357.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.335e-05/0.07798, allocations: 15.98 kB / 357.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.07799, allocations: 0 / 357.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.078, allocations: 4 kB / 357.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.07801, allocations: 0 / 357.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.07802, allocations: 4 kB / 357.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000196/0.07822, allocations: 201.9 kB / 357.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.942e-05/0.07829, allocations: 101 kB / 357.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.07831, allocations: 0 / 357.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.953e-05/0.07839, allocations: 4 kB / 357.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-05/0.07843, allocations: 11.94 kB / 357.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.688e-06/0.07844, allocations: 192 / 357.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.214e-05/0.07852, allocations: 116.8 kB / 357.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.423e-06/0.07852, allocations: 0 / 357.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002469/0.07878, allocations: 11.94 kB / 357.8 MB, free: 13.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 6.542e-05/0.07885, allocations: 103.1 kB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001526/0.07901, allocations: 60.09 kB / 357.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.07902, allocations: 0 / 357.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.813e-05/0.07907, allocations: 12 kB / 357.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003748/0.07946, allocations: 34.75 kB / 358 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003614/0.07983, allocations: 261.8 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.08005, allocations: 0.7004 MB / 358.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.941e-05/0.08009, allocations: 11.44 kB / 358.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.0801, allocations: 0 / 358.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of Templates: time 0.002088/0.08219, allocations: 0.9032 MB / 359.8 MB, free: 11.8 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches