Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.0007012/0.0007012, allocations: 109.5 kB / 18.95 MB, free: 1.184 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.001182/0.001182, allocations: 216 kB / 22.25 MB, free: 3.73 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.8804/0.8804, allocations: 230.6 MB / 256 MB, free: 9.641 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.03611/0.03611, allocations: 12.19 MB / 324.6 MB, free: 6.098 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.0004551/0.0004551, allocations: 27.94 kB / 384.1 MB, free: 10.52 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.548/1.548, allocations: 353.8 MB / 0.7787 GB, free: 4.625 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.ZeroOrderHold,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",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.001378/0.001378, allocations: 124.4 kB / 1.06 GB, free: 24.86 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1996, allocations: 134.9 MB / 1.192 GB, free: 7.543 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001442/0.2011, allocations: 0.644 MB / 1.192 GB, free: 6.902 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.00131/0.2024, allocations: 1.122 MB / 1.193 GB, free: 5.77 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.508e-05/0.2024, allocations: 0 / 1.193 GB, free: 5.77 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.67e-05/0.2024, allocations: 3.938 kB / 1.193 GB, free: 5.766 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.011e-05/0.2025, allocations: 11.92 kB / 1.193 GB, free: 5.754 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.2028, allocations: 47.83 kB / 1.193 GB, free: 5.707 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 8.097e-05/0.2029, allocations: 39.92 kB / 1.193 GB, free: 5.668 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.394e-05/0.203, allocations: 15.98 kB / 1.194 GB, free: 5.652 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.357e-05/0.203, allocations: 19.92 kB / 1.194 GB, free: 5.633 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 4.275e-05/0.2031, allocations: 23.84 kB / 1.194 GB, free: 5.609 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.2031, allocations: 8 kB / 1.194 GB, free: 5.602 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 5.468e-05/0.2031, allocations: 19.98 kB / 1.194 GB, free: 5.582 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.017e-05/0.2032, allocations: 15.92 kB / 1.194 GB, free: 5.566 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 2.693e-05/0.2032, allocations: 15.94 kB / 1.194 GB, free: 5.551 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.2033, allocations: 68 kB / 1.194 GB, free: 5.484 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2033, allocations: 3.984 kB / 1.194 GB, free: 5.48 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2033, allocations: 0 / 1.194 GB, free: 5.48 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.2033, allocations: 0 / 1.194 GB, free: 5.48 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004127/0.2037, allocations: 294.2 kB / 1.194 GB, free: 5.16 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.2038, allocations: 8.031 kB / 1.194 GB, free: 5.152 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.013e-05/0.2038, allocations: 34.75 kB / 1.194 GB, free: 5.109 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.194e-05/0.2039, allocations: 8.875 kB / 1.194 GB, free: 5.102 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.782e-05/0.2039, allocations: 118.4 kB / 1.194 GB, free: 4.961 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.204, allocations: 8.375 kB / 1.194 GB, free: 4.953 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.204, allocations: 384 / 1.194 GB, free: 4.953 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001408/0.2041, allocations: 74.2 kB / 1.194 GB, free: 4.875 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.046e-06/0.2041, allocations: 3.938 kB / 1.194 GB, free: 4.871 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.2041, allocations: 0 / 1.194 GB, free: 4.871 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.2041, allocations: 4 kB / 1.194 GB, free: 4.867 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.494e-05/0.2042, allocations: 43.95 kB / 1.194 GB, free: 4.824 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003251/0.2045, allocations: 239.9 kB / 1.194 GB, free: 4.547 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.2046, allocations: 58.48 kB / 1.195 GB, free: 4.48 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.987e-05/0.2047, allocations: 28.97 kB / 1.195 GB, free: 4.449 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.2047, allocations: 3.984 kB / 1.195 GB, free: 4.445 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001513/0.2049, allocations: 71.39 kB / 1.195 GB, free: 4.363 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 1.113e-06/0.2049, allocations: 0 / 1.195 GB, free: 4.363 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0002451/0.2051, allocations: 129.8 kB / 1.195 GB, free: 4.23 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.2051, allocations: 59.39 kB / 1.195 GB, free: 4.16 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.756e-05/0.2052, allocations: 101.9 kB / 1.195 GB, free: 4.051 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.2052, allocations: 37.64 kB / 1.195 GB, free: 4.008 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.233e-05/0.2052, allocations: 88.08 kB / 1.195 GB, free: 3.918 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/0.2053, allocations: 19.84 kB / 1.195 GB, free: 3.898 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/0.2053, allocations: 25.7 kB / 1.195 GB, free: 3.867 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.243e-05/0.2054, allocations: 318.8 kB / 1.195 GB, free: 3.547 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.366e-05/0.2054, allocations: 27.97 kB / 1.195 GB, free: 3.52 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.398e-05/0.2055, allocations: 64.2 kB / 1.195 GB, free: 3.441 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.2056, allocations: 96.14 kB / 1.196 GB, free: 3.332 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.2056, allocations: 0 / 1.196 GB, free: 3.332 MB / 0.823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001482/0.2058, allocations: 117.6 kB / 1.196 GB, free: 3.211 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2058, allocations: 7.984 kB / 1.196 GB, free: 3.203 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.2058, allocations: 4.125 kB / 1.196 GB, free: 3.199 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.2058, allocations: 4 kB / 1.196 GB, free: 3.195 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.274e-05/0.2059, allocations: 19.92 kB / 1.196 GB, free: 3.176 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.2059, allocations: 4 kB / 1.196 GB, free: 3.172 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.139e-05/0.2059, allocations: 4 kB / 1.196 GB, free: 3.168 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.607e-06/0.2059, allocations: 8 kB / 1.196 GB, free: 3.16 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 6.27e-05/0.206, allocations: 125.2 kB / 1.196 GB, free: 3.031 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.215e-06/0.206, allocations: 3.953 kB / 1.196 GB, free: 3.027 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001639/0.2061, allocations: 114 kB / 1.196 GB, free: 2.906 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2061, allocations: 0 / 1.196 GB, free: 2.906 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2061, allocations: 0 / 1.196 GB, free: 2.906 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2061, allocations: 0 / 1.196 GB, free: 2.906 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002596/0.2064, allocations: 325.6 kB / 1.196 GB, free: 2.539 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2064, allocations: 256 / 1.196 GB, free: 2.539 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.179e-05/0.2064, allocations: 15.92 kB / 1.196 GB, free: 2.523 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.2064, allocations: 4 kB / 1.196 GB, free: 2.52 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.2065, allocations: 4 kB / 1.196 GB, free: 2.516 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2065, allocations: 0 / 1.196 GB, free: 2.516 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2065, allocations: 0 / 1.196 GB, free: 2.516 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001511/0.2066, allocations: 207.4 kB / 1.196 GB, free: 2.297 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.621e-06/0.2066, allocations: 3.938 kB / 1.196 GB, free: 2.293 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.2066, allocations: 0 / 1.196 GB, free: 2.293 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.692e-05/0.2067, allocations: 11.98 kB / 1.196 GB, free: 2.281 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.175e-05/0.2067, allocations: 11.92 kB / 1.196 GB, free: 2.27 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.2067, allocations: 4 kB / 1.197 GB, free: 2.266 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.219e-05/0.2067, allocations: 83.47 kB / 1.197 GB, free: 2.184 MB / 0.823 GB Notification: Performance of sort global known variables: time 5e-08/0.2067, allocations: 0 / 1.197 GB, free: 2.184 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001586/0.2069, allocations: 19.94 kB / 1.197 GB, free: 2.164 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0003641/0.2073, allocations: 0.7357 MB / 1.197 GB, free: 1.402 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.000151/0.2074, allocations: 68.08 kB / 1.197 GB, free: 1.336 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2074, allocations: 4.062 kB / 1.197 GB, free: 1.332 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 5.687e-05/0.2075, allocations: 31.91 kB / 1.197 GB, free: 1.301 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001835/0.2077, allocations: 11.94 kB / 1.197 GB, free: 1.289 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009949/0.2087, allocations: 1.422 MB / 1.199 GB, free: 15.77 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.49e-05/0.2087, allocations: 67.34 kB / 1.199 GB, free: 15.68 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 2.845e-05/0.2087, allocations: 7.984 kB / 1.199 GB, free: 15.67 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.2088, allocations: 15.44 kB / 1.199 GB, free: 15.66 MB / 0.8387 GB Notification: Performance of SimCode: time 5.51e-07/0.2088, allocations: 0 / 1.199 GB, free: 15.66 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01483/0.2236, allocations: 2.376 MB / 1.201 GB, free: 13.41 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.946/6.17, allocations: 14.31 kB / 1.201 GB, free: 13.4 MB / 0.8387 GB " [Timeout remaining time 654] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_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_ZeroOrderHold.fmu > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.198360266163945] Failed to read output from testmodel.py, exit status != 0: 6.243347551673651 6.252184992 6.046206538 Calling exit ...