Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 109.9 kB / 18.93 MB, free: 1.27 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 217.7 kB / 22.25 MB, free: 3.699 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9662/0.9662, allocations: 230.6 MB / 256 MB, free: 9.789 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.03787/0.03787, allocations: 12.17 MB / 324.6 MB, free: 6.277 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0005973/0.0005973, allocations: 27.95 kB / 384.1 MB, free: 10.68 MB / 314.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo): time 1.73/1.73, allocations: 353.8 MB / 0.7787 GB, free: 3.109 MB / 0.5105 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AixLib requested package Modelica_DeviceDrivers of version 2.1.1. Modelica_DeviceDrivers 2.2.0 is used instead which states that it is fully compatible without conversion script needed. Notification: AixLib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 122.5 kB / 1.06 GB, free: 25 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2434, allocations: 134.9 MB / 1.192 GB, free: 7.867 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001503/0.2449, allocations: 0.6599 MB / 1.192 GB, free: 7.211 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.000986/0.2459, allocations: 1.122 MB / 1.193 GB, free: 6.078 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.754e-05/0.2459, allocations: 0 / 1.193 GB, free: 6.078 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.698e-05/0.246, allocations: 3.938 kB / 1.193 GB, free: 6.074 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.181e-05/0.246, allocations: 11.92 kB / 1.194 GB, free: 6.062 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/0.2463, allocations: 39.84 kB / 1.194 GB, free: 6.023 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 9.159e-05/0.2464, allocations: 55.83 kB / 1.194 GB, free: 5.969 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.23e-05/0.2465, allocations: 8 kB / 1.194 GB, free: 5.961 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.436e-05/0.2465, allocations: 23.86 kB / 1.194 GB, free: 5.938 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 4.467e-05/0.2466, allocations: 19.92 kB / 1.194 GB, free: 5.918 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.2466, allocations: 4 kB / 1.194 GB, free: 5.914 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 6.047e-05/0.2466, allocations: 23.98 kB / 1.194 GB, free: 5.891 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 1.728e-05/0.2467, allocations: 11.97 kB / 1.194 GB, free: 5.879 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 3.015e-05/0.2467, allocations: 19.88 kB / 1.194 GB, free: 5.859 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.2468, allocations: 60.06 kB / 1.194 GB, free: 5.801 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.2468, allocations: 11.92 kB / 1.194 GB, free: 5.789 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2468, allocations: 0 / 1.194 GB, free: 5.789 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.2468, allocations: 4 kB / 1.194 GB, free: 5.785 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003851/0.2472, allocations: 278.2 kB / 1.194 GB, free: 5.48 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.2472, allocations: 11.97 kB / 1.194 GB, free: 5.469 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.911e-05/0.2473, allocations: 38.73 kB / 1.194 GB, free: 5.422 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.077e-05/0.2473, allocations: 8.891 kB / 1.194 GB, free: 5.414 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.83e-05/0.2474, allocations: 110.4 kB / 1.194 GB, free: 5.281 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.2474, allocations: 12.38 kB / 1.194 GB, free: 5.27 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.277e-05/0.2475, allocations: 4.375 kB / 1.194 GB, free: 5.266 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.2476, allocations: 62.22 kB / 1.194 GB, free: 5.199 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.2476, allocations: 3.938 kB / 1.194 GB, free: 5.195 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.2476, allocations: 0 / 1.194 GB, free: 5.195 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.2476, allocations: 0 / 1.194 GB, free: 5.195 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.377e-05/0.2477, allocations: 47.94 kB / 1.194 GB, free: 5.148 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003492/0.248, allocations: 259.8 kB / 1.195 GB, free: 4.852 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001063/0.2482, allocations: 54.48 kB / 1.195 GB, free: 4.789 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.812e-05/0.2482, allocations: 28.97 kB / 1.195 GB, free: 4.758 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.2482, allocations: 0 / 1.195 GB, free: 4.758 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001291/0.2483, allocations: 79.38 kB / 1.195 GB, free: 4.668 MB / 0.823 GB Notification: Performance of pre-optimization done (n=6): time 9.81e-07/0.2483, allocations: 0 / 1.195 GB, free: 4.668 MB / 0.823 GB Notification: Performance of matching and sorting (n=6): time 0.0002344/0.2486, allocations: 121.5 kB / 1.195 GB, free: 4.543 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/0.2486, allocations: 55.41 kB / 1.195 GB, free: 4.477 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.231e-05/0.2487, allocations: 105.8 kB / 1.195 GB, free: 4.363 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.2487, allocations: 29.7 kB / 1.195 GB, free: 4.328 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.656e-05/0.2487, allocations: 92.14 kB / 1.195 GB, free: 4.234 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.585e-05/0.2487, allocations: 15.83 kB / 1.195 GB, free: 4.219 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.843e-05/0.2488, allocations: 21.72 kB / 1.195 GB, free: 4.191 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.383e-05/0.2488, allocations: 322.8 kB / 1.195 GB, free: 3.867 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.989e-05/0.2489, allocations: 23.98 kB / 1.195 GB, free: 3.844 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.356e-05/0.249, allocations: 60.27 kB / 1.196 GB, free: 3.77 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/0.2491, allocations: 92.12 kB / 1.196 GB, free: 3.664 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2491, allocations: 0 / 1.196 GB, free: 3.664 MB / 0.823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001454/0.2492, allocations: 109.5 kB / 1.196 GB, free: 3.551 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.2492, allocations: 4 kB / 1.196 GB, free: 3.547 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.2492, allocations: 4 kB / 1.196 GB, free: 3.543 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.2492, allocations: 4.172 kB / 1.196 GB, free: 3.539 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.801e-05/0.2493, allocations: 20.08 kB / 1.196 GB, free: 3.52 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.2493, allocations: 11.94 kB / 1.196 GB, free: 3.508 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.091e-05/0.2494, allocations: 4 kB / 1.196 GB, free: 3.504 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.2494, allocations: 11.94 kB / 1.196 GB, free: 3.492 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 5.996e-05/0.2494, allocations: 121.8 kB / 1.196 GB, free: 3.363 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.102e-06/0.2494, allocations: 3.953 kB / 1.196 GB, free: 3.359 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/0.2496, allocations: 106 kB / 1.196 GB, free: 3.246 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2496, allocations: 4 kB / 1.196 GB, free: 3.242 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2496, allocations: 0 / 1.196 GB, free: 3.242 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.2496, allocations: 0 / 1.196 GB, free: 3.242 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002551/0.2498, allocations: 317.6 kB / 1.196 GB, free: 2.883 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2498, allocations: 7.922 kB / 1.196 GB, free: 2.875 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.673e-05/0.2499, allocations: 4.375 kB / 1.196 GB, free: 2.871 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.2499, allocations: 0 / 1.196 GB, free: 2.871 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.2499, allocations: 4 kB / 1.196 GB, free: 2.867 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.2499, allocations: 11.98 kB / 1.196 GB, free: 2.855 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2499, allocations: 0 / 1.196 GB, free: 2.855 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001421/0.25, allocations: 191.4 kB / 1.197 GB, free: 2.652 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-06/0.25, allocations: 3.938 kB / 1.197 GB, free: 2.648 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.25, allocations: 4 kB / 1.197 GB, free: 2.645 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.921e-05/0.2501, allocations: 7.984 kB / 1.197 GB, free: 2.637 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.2501, allocations: 11.92 kB / 1.197 GB, free: 2.625 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/0.2501, allocations: 4 kB / 1.197 GB, free: 2.621 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.672e-05/0.2502, allocations: 91.64 kB / 1.197 GB, free: 2.531 MB / 0.823 GB Notification: Performance of sort global known variables: time 5e-08/0.2502, allocations: 3.938 kB / 1.197 GB, free: 2.527 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001606/0.2503, allocations: 15.98 kB / 1.197 GB, free: 2.512 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0003799/0.2507, allocations: 0.7242 MB / 1.197 GB, free: 1.762 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001474/0.2509, allocations: 59.89 kB / 1.197 GB, free: 1.703 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2509, allocations: 0 / 1.197 GB, free: 1.703 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 5.833e-05/0.2509, allocations: 39.91 kB / 1.197 GB, free: 1.664 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001806/0.2511, allocations: 14.28 kB / 1.197 GB, free: 1.652 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.2521, allocations: 1.415 MB / 1.199 GB, free: 140 kB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.2523, allocations: 0.6846 MB / 1.2 GB, free: 15.43 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 2.391e-05/0.2523, allocations: 4 kB / 1.2 GB, free: 15.42 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.305e-05/0.2523, allocations: 15.44 kB / 1.2 GB, free: 15.41 MB / 0.8387 GB Notification: Performance of SimCode: time 5.81e-07/0.2523, allocations: 4 kB / 1.2 GB, free: 15.4 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01309/0.2654, allocations: 1.91 MB / 1.201 GB, free: 13.62 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.819/7.085, allocations: 13.33 kB / 1.201 GB, free: 13.61 MB / 0.8387 GB " [Timeout remaining time 653] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & python3 -m fmpy simulate --output-file AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.658556124195457] Failed to read output from testmodel.py, exit status != 0: 7.161198290064931 7.171495509 6.922697947 Calling exit ...