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.001485/0.001485, allocations: 109.4 kB / 17.74 MB, free: 5.23 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.001605/0.001605, allocations: 183.1 kB / 18.66 MB, free: 4.312 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.402/1.402, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 51.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2673, allocations: 49.42 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.003604/0.2709, allocations: 1.861 MB / 403.3 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.2722, allocations: 0.6273 MB / 403.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.2724, allocations: 7.938 kB / 403.9 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.2726, allocations: 23.8 kB / 403.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.2728, allocations: 19.73 kB / 403.9 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.2732, allocations: 111.6 kB / 404.1 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000229/0.2735, allocations: 135.6 kB / 404.2 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.2737, allocations: 65.7 kB / 404.2 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.2738, allocations: 51.72 kB / 404.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/0.2739, allocations: 55.7 kB / 404.4 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.2739, allocations: 12 kB / 404.4 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.125e-05/0.274, allocations: 8 kB / 404.4 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.02e-05/0.274, allocations: 31.86 kB / 404.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.03e-05/0.2741, allocations: 59.61 kB / 404.5 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.2743, allocations: 143.4 kB / 404.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2743, allocations: 7.875 kB / 404.6 MB, free: 5.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2743, allocations: 0 / 404.6 MB, free: 5.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.2743, allocations: 0 / 404.6 MB, free: 5.648 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.0006017/0.2749, allocations: 455.2 kB / 405.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.275, allocations: 11.89 kB / 405.1 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.517e-05/0.275, allocations: 16.75 kB / 405.1 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.2754, allocations: 253.7 kB / 405.3 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.2754, allocations: 12.12 kB / 405.3 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.122e-05/0.2755, allocations: 12 kB / 405.4 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005904/0.2761, allocations: 283.8 kB / 405.6 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.2761, allocations: 3.938 kB / 405.6 MB, free: 4.516 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.2761, allocations: 7.984 kB / 405.6 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.2761, allocations: 8 kB / 405.6 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002049/0.2763, allocations: 71.89 kB / 405.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000477/0.2768, allocations: 427.4 kB / 406.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004608/0.2773, allocations: 290 kB / 406.4 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/0.2775, allocations: 116.3 kB / 406.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.2775, allocations: 7.938 kB / 406.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.2776, allocations: 38.56 kB / 406.6 MB, free: 3.418 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.944e-06/0.2776, allocations: 0 / 406.6 MB, free: 3.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005635/0.2781, allocations: 217.3 kB / 406.8 MB, free: 3.199 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.2783, allocations: 196.2 kB / 407 MB, free: 2.965 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.2785, allocations: 187.1 kB / 407.2 MB, free: 2.773 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.2785, allocations: 25.7 kB / 407.2 MB, free: 2.742 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.509e-05/0.2786, allocations: 104.5 kB / 407.3 MB, free: 2.633 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.735e-05/0.2786, allocations: 23.81 kB / 407.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.354e-05/0.2787, allocations: 29.72 kB / 407.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.2788, allocations: 330.8 kB / 407.7 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.687e-05/0.2789, allocations: 19.98 kB / 407.7 MB, free: 2.223 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.279, allocations: 147.3 kB / 407.8 MB, free: 2.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002006/0.2792, allocations: 174.4 kB / 408 MB, free: 1.801 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2792, allocations: 0 / 408 MB, free: 1.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003025/0.2795, allocations: 177.5 kB / 408.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.2796, allocations: 8 kB / 408.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.2796, allocations: 4 kB / 408.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.2796, allocations: 4 kB / 408.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.2797, allocations: 39.92 kB / 408.2 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.2798, allocations: 7.984 kB / 408.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.2799, allocations: 23.78 kB / 408.3 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.2799, allocations: 8 kB / 408.3 MB, free: 1.527 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.0001316/0.28, allocations: 142 kB / 408.4 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002864/0.2803, allocations: 137.4 kB / 408.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.093e-05/0.2804, allocations: 25.39 kB / 408.6 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.2804, allocations: 7.938 kB / 408.6 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.2804, allocations: 0 / 408.6 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.2804, allocations: 3.938 kB / 408.6 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002954/0.2807, allocations: 217.4 kB / 408.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.2807, allocations: 4 kB / 408.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.2809, allocations: 47.94 kB / 408.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.2809, allocations: 0 / 408.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.2809, allocations: 8 kB / 408.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.2809, allocations: 0 / 408.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.2809, allocations: 4 kB / 408.9 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004295/0.2814, allocations: 364.9 kB / 409.2 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.837e-05/0.2815, allocations: 113.1 kB / 409.3 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.2815, allocations: 4 kB / 409.3 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.2817, allocations: 11.98 kB / 409.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.27e-05/0.2817, allocations: 11.92 kB / 409.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.2817, allocations: 4 kB / 409.3 MB, free: 336 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001098/0.2819, allocations: 141.2 kB / 409.5 MB, free: 196 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2819, allocations: 0 / 409.5 MB, free: 196 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003339/0.2822, allocations: 20 kB / 409.5 MB, free: 176 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.0001319/0.2823, allocations: 111.1 kB / 409.6 MB, free: 56 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000311/0.2827, allocations: 120.6 kB / 409.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.2827, allocations: 0 / 409.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.492e-05/0.2827, allocations: 15.98 kB / 409.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006468/0.2834, allocations: 109.9 kB / 409.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000633/0.284, allocations: 341.7 kB / 410.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.2843, allocations: 0.7318 MB / 410.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.132e-05/0.2844, allocations: 15.44 kB / 410.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of SimCode: time 4.4e-07/0.2844, allocations: 0 / 410.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of Templates: time 0.003525/0.2879, allocations: 1.838 MB / 412.8 MB, free: 12.84 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","/var/lib/jenkins1/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