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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001304, allocations: 106.5 kB / 17.06 MB, free: 6.098 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.001476/0.001477, allocations: 198.9 kB / 18 MB, free: 5.168 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3053, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.004298/0.3096, allocations: 1.857 MB / 402.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.3109, allocations: 0.6311 MB / 402.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.311, allocations: 4 kB / 402.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001858/0.3113, allocations: 27.73 kB / 402.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.3114, allocations: 27.78 kB / 402.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004376/0.3119, allocations: 103.7 kB / 402.9 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001986/0.3121, allocations: 135.6 kB / 403 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.3123, allocations: 61.7 kB / 403.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.3124, allocations: 63.7 kB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.602e-05/0.3125, allocations: 47.72 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.734e-05/0.3125, allocations: 8 kB / 403.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.158e-05/0.3126, allocations: 16 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.992e-05/0.3126, allocations: 35.78 kB / 403.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.284e-05/0.3127, allocations: 63.59 kB / 403.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.313, allocations: 138.3 kB / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.313, allocations: 4 kB / 403.4 MB, free: 5.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.313, allocations: 0 / 403.4 MB, free: 5.602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.313, allocations: 0 / 403.4 MB, free: 5.602 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.0006719/0.3137, allocations: 454.8 kB / 403.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.3137, allocations: 12.03 kB / 403.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.671e-05/0.3138, allocations: 42.69 kB / 403.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.025e-05/0.3138, allocations: 28.72 kB / 404 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.3142, allocations: 234 kB / 404.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.3142, allocations: 11.94 kB / 404.2 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.3142, allocations: 8 kB / 404.2 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000599/0.3148, allocations: 295.1 kB / 404.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3148, allocations: 4 kB / 404.5 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.3149, allocations: 8 kB / 404.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.3149, allocations: 0 / 404.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/0.3151, allocations: 67.89 kB / 404.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005455/0.3156, allocations: 439.4 kB / 405 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004839/0.3161, allocations: 294 kB / 405.3 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.3163, allocations: 112.4 kB / 405.4 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.613e-05/0.3164, allocations: 4 kB / 405.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.662e-05/0.3164, allocations: 50.48 kB / 405.5 MB, free: 3.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.293e-06/0.3164, allocations: 0 / 405.5 MB, free: 3.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005747/0.317, allocations: 209.7 kB / 405.7 MB, free: 3.098 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.3171, allocations: 203.8 kB / 405.9 MB, free: 2.855 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.3173, allocations: 187.1 kB / 406.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.3173, allocations: 25.7 kB / 406.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.3174, allocations: 104.5 kB / 406.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.3174, allocations: 15.91 kB / 406.2 MB, free: 2.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.983e-05/0.3175, allocations: 37.64 kB / 406.2 MB, free: 2.465 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3176, allocations: 330.8 kB / 406.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.177e-05/0.3177, allocations: 23.98 kB / 406.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.3178, allocations: 135.4 kB / 406.7 MB, free: 1.922 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.318, allocations: 174.4 kB / 406.9 MB, free: 1.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.318, allocations: 0 / 406.9 MB, free: 1.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002728/0.3183, allocations: 185.2 kB / 407.1 MB, free: 1.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3183, allocations: 6.656 kB / 407.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3184, allocations: 4 kB / 407.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.3184, allocations: 8 kB / 407.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.3185, allocations: 31.98 kB / 407.1 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.3185, allocations: 11.88 kB / 407.1 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.3186, allocations: 28.34 kB / 407.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.3187, allocations: 12 kB / 407.2 MB, free: 1.414 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.0001101/0.3188, allocations: 137.7 kB / 407.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002731/0.3191, allocations: 145.4 kB / 407.4 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.772e-05/0.3191, allocations: 17.41 kB / 407.5 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3191, allocations: 4 kB / 407.5 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3191, allocations: 3.938 kB / 407.5 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3191, allocations: 7.984 kB / 407.5 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002671/0.3194, allocations: 217.6 kB / 407.7 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3194, allocations: 4 kB / 407.7 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001378/0.3196, allocations: 39.91 kB / 407.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3196, allocations: 0 / 407.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.3196, allocations: 8 kB / 407.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3196, allocations: 0 / 407.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/0.3196, allocations: 7.938 kB / 407.7 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004172/0.32, allocations: 361.1 kB / 408.1 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.3202, allocations: 112.9 kB / 408.2 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.829e-05/0.3202, allocations: 8 kB / 408.2 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.3203, allocations: 15.98 kB / 408.2 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.523e-05/0.3204, allocations: 7.938 kB / 408.2 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.3204, allocations: 4 kB / 408.2 MB, free: 224 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001035/0.3205, allocations: 137.2 kB / 408.4 MB, free: 88 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3205, allocations: 0 / 408.4 MB, free: 88 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003238/0.3209, allocations: 20 kB / 408.4 MB, free: 68 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.0008415/0.3217, allocations: 0.96 MB / 409.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002789/0.322, allocations: 120 kB / 409.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.322, allocations: 7.938 kB / 409.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.244e-05/0.322, allocations: 8 kB / 409.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006407/0.3227, allocations: 117.1 kB / 409.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002095/0.3248, allocations: 2.069 MB / 411.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002942/0.3251, allocations: 0.7319 MB / 412.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.488e-05/0.3252, allocations: 17.55 kB / 412.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.263e-05/0.3253, allocations: 39.42 kB / 412.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3253, allocations: 0 / 412.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.3452, allocations: 3.492 MB / 415.9 MB, free: 8.414 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.292/8.637, allocations: 11.06 kB / 416 MB, free: 8.406 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > 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.csv","/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