Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.001317/0.001317, allocations: 196 kB / 18 MB, free: 5.074 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.361/1.361, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009751/0.0009753, allocations: 47.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3421, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.003138/0.3453, allocations: 1.857 MB / 402.6 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.3464, allocations: 0.6273 MB / 403.2 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.3465, allocations: 7.938 kB / 403.2 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.3467, allocations: 23.73 kB / 403.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.3468, allocations: 27.78 kB / 403.3 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003581/0.3472, allocations: 102.6 kB / 403.4 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001754/0.3474, allocations: 139.6 kB / 403.5 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.3475, allocations: 61.66 kB / 403.6 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.491e-05/0.3477, allocations: 55.77 kB / 403.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.498e-05/0.3477, allocations: 47.72 kB / 403.7 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.592e-05/0.3478, allocations: 12 kB / 403.7 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.179e-05/0.3478, allocations: 8 kB / 403.7 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.036e-05/0.3479, allocations: 35.8 kB / 403.7 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.546e-05/0.3479, allocations: 63.59 kB / 403.8 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.3482, allocations: 143.2 kB / 403.9 MB, free: 5.688 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.3482, allocations: 4 kB / 403.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3482, allocations: 0 / 403.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.3482, allocations: 0 / 403.9 MB, free: 5.684 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006126/0.3488, allocations: 454.8 kB / 404.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.3488, allocations: 11.89 kB / 404.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.489e-05/0.3489, allocations: 24.73 kB / 404.4 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003513/0.3493, allocations: 245.9 kB / 404.7 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.3493, allocations: 16.06 kB / 404.7 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.877e-05/0.3493, allocations: 8 kB / 404.7 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005683/0.3499, allocations: 288.2 kB / 405 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3499, allocations: 3.984 kB / 405 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.3499, allocations: 0 / 405 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3499, allocations: 4 kB / 405 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.3501, allocations: 75.89 kB / 405 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004677/0.3506, allocations: 423.4 kB / 405.5 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004537/0.3511, allocations: 302 kB / 405.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.3513, allocations: 116.3 kB / 405.9 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.3513, allocations: 7.984 kB / 405.9 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.3513, allocations: 38.5 kB / 405.9 MB, free: 3.438 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.252e-06/0.3513, allocations: 0 / 405.9 MB, free: 3.438 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005587/0.3519, allocations: 221.7 kB / 406.1 MB, free: 3.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/0.3521, allocations: 188 kB / 406.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.3523, allocations: 183.1 kB / 406.5 MB, free: 2.801 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.3523, allocations: 38.02 kB / 406.5 MB, free: 2.758 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.668e-05/0.3524, allocations: 104.5 kB / 406.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.257e-05/0.3524, allocations: 19.89 kB / 406.6 MB, free: 2.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.834e-05/0.3525, allocations: 33.72 kB / 406.7 MB, free: 2.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3527, allocations: 326.8 kB / 407 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.173e-05/0.3527, allocations: 27.92 kB / 407 MB, free: 2.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.3529, allocations: 135.4 kB / 407.2 MB, free: 2.047 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.3531, allocations: 174.4 kB / 407.3 MB, free: 1.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3531, allocations: 0 / 407.3 MB, free: 1.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002752/0.3534, allocations: 173.2 kB / 407.5 MB, free: 1.648 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.3534, allocations: 8.531 kB / 407.5 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3534, allocations: 8 kB / 407.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.3535, allocations: 7.938 kB / 407.5 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.3536, allocations: 35.98 kB / 407.6 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.3536, allocations: 19.91 kB / 407.6 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.612e-05/0.3537, allocations: 15.83 kB / 407.6 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.3538, allocations: 19.94 kB / 407.6 MB, free: 1.535 MB / 318.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001074/0.3539, allocations: 125.8 kB / 407.7 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002864/0.3542, allocations: 157.4 kB / 407.9 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.757e-05/0.3542, allocations: 21.41 kB / 407.9 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3542, allocations: 3.984 kB / 407.9 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3542, allocations: 4 kB / 407.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3543, allocations: 3.938 kB / 407.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.3545, allocations: 217.5 kB / 408.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.3545, allocations: 0 / 408.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/0.3547, allocations: 39.97 kB / 408.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3547, allocations: 7.938 kB / 408.2 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.3547, allocations: 4 kB / 408.2 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.3547, allocations: 4.031 kB / 408.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3547, allocations: 0 / 408.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003944/0.3551, allocations: 365.3 kB / 408.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.259e-05/0.3552, allocations: 120.9 kB / 408.7 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.1e-05/0.3553, allocations: 8 kB / 408.7 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.3554, allocations: 11.92 kB / 408.7 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.884e-05/0.3555, allocations: 7.938 kB / 408.7 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.3555, allocations: 8 kB / 408.7 MB, free: 340 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001056/0.3556, allocations: 129.2 kB / 408.8 MB, free: 212 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3556, allocations: 0 / 408.8 MB, free: 212 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.3559, allocations: 28 kB / 408.8 MB, free: 184 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.000114/0.356, allocations: 103.2 kB / 408.9 MB, free: 72 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003176/0.3564, allocations: 124.9 kB / 409.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3564, allocations: 0 / 409.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.858e-05/0.3564, allocations: 19.98 kB / 409.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006267/0.3571, allocations: 116.6 kB / 409.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005675/0.3576, allocations: 315.3 kB / 409.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.358, allocations: 0.732 MB / 410.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.161e-05/0.358, allocations: 13.55 kB / 410.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.802e-05/0.3581, allocations: 19.44 kB / 410.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3581, allocations: 0 / 410.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of Templates: time 0.004459/0.3625, allocations: 1.757 MB / 412 MB, free: 12.94 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches