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.001278/0.001278, allocations: 107.3 kB / 17.74 MB, free: 5.359 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.001311/0.00131, allocations: 192 kB / 18.67 MB, free: 4.434 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.494/1.494, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.001161, allocations: 51.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2903, allocations: 49.42 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.003384/0.2937, allocations: 1.865 MB / 403.3 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.2949, allocations: 0.6273 MB / 403.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.2951, allocations: 0 / 403.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.2952, allocations: 31.67 kB / 403.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000128/0.2953, allocations: 27.78 kB / 403.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.2957, allocations: 94.41 kB / 404 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001907/0.2959, allocations: 143.6 kB / 404.2 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.2961, allocations: 61.72 kB / 404.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.2962, allocations: 55.7 kB / 404.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.117e-05/0.2963, allocations: 51.72 kB / 404.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.003e-05/0.2963, allocations: 12 kB / 404.4 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.485e-05/0.2964, allocations: 8 kB / 404.4 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.934e-05/0.2964, allocations: 35.78 kB / 404.4 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.607e-05/0.2965, allocations: 67.53 kB / 404.5 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001815/0.2967, allocations: 135.4 kB / 404.6 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.81e-06/0.2967, allocations: 0 / 404.6 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2967, allocations: 4 kB / 404.6 MB, free: 5.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.2967, allocations: 0 / 404.6 MB, free: 5.672 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.0006044/0.2973, allocations: 455.2 kB / 405 MB, free: 5.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.2974, allocations: 11.89 kB / 405.1 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.429e-05/0.2974, allocations: 16.75 kB / 405.1 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.2978, allocations: 253.7 kB / 405.3 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.2978, allocations: 12.12 kB / 405.3 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.2978, allocations: 12 kB / 405.3 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000553/0.2984, allocations: 284.1 kB / 405.6 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.2984, allocations: 0 / 405.6 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.2984, allocations: 8 kB / 405.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.2984, allocations: 0 / 405.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002122/0.2986, allocations: 75.88 kB / 405.7 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004798/0.2991, allocations: 431.3 kB / 406.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004347/0.2996, allocations: 290.1 kB / 406.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.2998, allocations: 120.3 kB / 406.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.2998, allocations: 7.984 kB / 406.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.2998, allocations: 38.56 kB / 406.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.2998, allocations: 3.938 kB / 406.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005324/0.3004, allocations: 221.5 kB / 406.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.3005, allocations: 187.9 kB / 407 MB, free: 2.984 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.3007, allocations: 187.1 kB / 407.2 MB, free: 2.793 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.3007, allocations: 26.08 kB / 407.2 MB, free: 2.762 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.285e-05/0.3008, allocations: 112.4 kB / 407.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.625e-05/0.3008, allocations: 15.89 kB / 407.3 MB, free: 2.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.371e-05/0.3009, allocations: 33.7 kB / 407.3 MB, free: 2.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.301, allocations: 326.8 kB / 407.7 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.689e-05/0.3011, allocations: 27.92 kB / 407.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.3012, allocations: 147.3 kB / 407.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.3014, allocations: 170.4 kB / 408 MB, free: 1.816 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3014, allocations: 0 / 408 MB, free: 1.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002854/0.3017, allocations: 173.2 kB / 408.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3017, allocations: 4.531 kB / 408.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3018, allocations: 4 kB / 408.2 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.3018, allocations: 8 kB / 408.2 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.3019, allocations: 43.91 kB / 408.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.3019, allocations: 11.94 kB / 408.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.302, allocations: 23.78 kB / 408.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.3021, allocations: 8 kB / 408.3 MB, free: 1.539 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.0001165/0.3022, allocations: 137.8 kB / 408.4 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002781/0.3025, allocations: 141.4 kB / 408.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.527e-05/0.3025, allocations: 29.33 kB / 408.6 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.3026, allocations: 4 kB / 408.6 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.3026, allocations: 0 / 408.6 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.3026, allocations: 7.938 kB / 408.6 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002971/0.3029, allocations: 217.4 kB / 408.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.3029, allocations: 4 kB / 408.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.303, allocations: 31.98 kB / 408.8 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.3031, allocations: 0 / 408.8 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.3031, allocations: 11.98 kB / 408.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.3031, allocations: 7.969 kB / 408.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3031, allocations: 4 kB / 408.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004276/0.3035, allocations: 361 kB / 409.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.725e-05/0.3036, allocations: 108.8 kB / 409.3 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.3037, allocations: 4 kB / 409.3 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.3038, allocations: 15.98 kB / 409.3 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.092e-05/0.3039, allocations: 7.875 kB / 409.3 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.3039, allocations: 7.984 kB / 409.3 MB, free: 352 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001184/0.304, allocations: 133.2 kB / 409.5 MB, free: 220 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.304, allocations: 0 / 409.5 MB, free: 220 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003295/0.3044, allocations: 20 kB / 409.5 MB, free: 200 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.000133/0.3045, allocations: 115.2 kB / 409.6 MB, free: 76 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003189/0.3048, allocations: 112.8 kB / 409.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3048, allocations: 0 / 409.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.783e-05/0.3049, allocations: 24.05 kB / 409.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006302/0.3055, allocations: 111.2 kB / 409.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007062/0.3062, allocations: 341.3 kB / 410.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.3067, allocations: 0.7359 MB / 410.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.799e-05/0.3067, allocations: 19.42 kB / 410.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3067, allocations: 0 / 410.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of Templates: time 0.004159/0.3109, allocations: 1.85 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