Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.0006615/0.0006615, 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.0007714/0.0007714, allocations: 217.7 kB / 22.26 MB, free: 3.703 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 1.002/1.002, 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.04388/0.04388, allocations: 12.18 MB / 324.6 MB, free: 6.363 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.000538/0.000538, allocations: 27.94 kB / 384.1 MB, free: 10.77 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.784/1.784, allocations: 353.8 MB / 0.7787 GB, free: 3.117 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.FirstOrderHold,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",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.001404/0.001404, allocations: 125.4 kB / 1.06 GB, free: 25 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2022, allocations: 134.9 MB / 1.192 GB, free: 7.871 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001357/0.2035, allocations: 0.6852 MB / 1.192 GB, free: 7.188 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0009194/0.2044, allocations: 1.133 MB / 1.194 GB, free: 6.043 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.345e-05/0.2045, allocations: 0 / 1.194 GB, free: 6.043 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.344e-05/0.2045, allocations: 3.938 kB / 1.194 GB, free: 6.039 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.429e-05/0.2046, allocations: 15.86 kB / 1.194 GB, free: 6.023 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002443/0.2048, allocations: 47.83 kB / 1.194 GB, free: 5.977 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 9.119e-05/0.2049, allocations: 71.83 kB / 1.194 GB, free: 5.906 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.144e-05/0.205, allocations: 11.98 kB / 1.194 GB, free: 5.895 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.664e-05/0.2051, allocations: 31.92 kB / 1.194 GB, free: 5.863 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 4.881e-05/0.2051, allocations: 27.91 kB / 1.194 GB, free: 5.836 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.2051, allocations: 4 kB / 1.194 GB, free: 5.832 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 5.654e-05/0.2052, allocations: 27.92 kB / 1.194 GB, free: 5.805 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 1.962e-05/0.2052, allocations: 23.91 kB / 1.194 GB, free: 5.781 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 4.224e-05/0.2052, allocations: 31.86 kB / 1.194 GB, free: 5.75 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.2054, allocations: 75.97 kB / 1.194 GB, free: 5.676 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.2054, allocations: 0 / 1.194 GB, free: 5.676 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.983e-06/0.2054, allocations: 4 kB / 1.194 GB, free: 5.672 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.2054, allocations: 0 / 1.194 GB, free: 5.672 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004276/0.2058, allocations: 306.1 kB / 1.194 GB, free: 5.34 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.2058, allocations: 8.031 kB / 1.194 GB, free: 5.332 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.981e-05/0.2059, allocations: 42.73 kB / 1.194 GB, free: 5.281 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.277e-05/0.2059, allocations: 8.891 kB / 1.194 GB, free: 5.273 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.371e-05/0.206, allocations: 110.5 kB / 1.194 GB, free: 5.141 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.206, allocations: 4.312 kB / 1.194 GB, free: 5.137 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.206, allocations: 12.38 kB / 1.194 GB, free: 5.125 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001431/0.2062, allocations: 82.2 kB / 1.194 GB, free: 5.039 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.2062, allocations: 3.938 kB / 1.194 GB, free: 5.035 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.2062, allocations: 3.938 kB / 1.194 GB, free: 5.031 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.2062, allocations: 0 / 1.194 GB, free: 5.031 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001057/0.2063, allocations: 55.95 kB / 1.194 GB, free: 4.977 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003592/0.2067, allocations: 291.7 kB / 1.195 GB, free: 4.648 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.2068, allocations: 78.47 kB / 1.195 GB, free: 4.562 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.904e-05/0.2068, allocations: 32.84 kB / 1.195 GB, free: 4.527 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.2069, allocations: 4 kB / 1.195 GB, free: 4.523 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001343/0.207, allocations: 95.48 kB / 1.195 GB, free: 4.418 MB / 0.823 GB Notification: Performance of pre-optimization done (n=10): time 1.052e-06/0.207, allocations: 0 / 1.195 GB, free: 4.418 MB / 0.823 GB Notification: Performance of matching and sorting (n=10): time 0.0002968/0.2073, allocations: 173.5 kB / 1.195 GB, free: 4.242 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.2073, allocations: 51.41 kB / 1.195 GB, free: 4.18 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.275e-05/0.2074, allocations: 109.8 kB / 1.195 GB, free: 4.062 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.2074, allocations: 29.7 kB / 1.195 GB, free: 4.027 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.935e-05/0.2074, allocations: 96.31 kB / 1.195 GB, free: 3.926 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.2075, allocations: 23.8 kB / 1.195 GB, free: 3.902 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-05/0.2075, allocations: 33.7 kB / 1.195 GB, free: 3.863 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.489e-05/0.2076, allocations: 322.8 kB / 1.196 GB, free: 3.539 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.476e-05/0.2076, allocations: 39.97 kB / 1.196 GB, free: 3.5 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.58e-05/0.2077, allocations: 60.09 kB / 1.196 GB, free: 3.434 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.2079, allocations: 102.5 kB / 1.196 GB, free: 3.324 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2079, allocations: 256 / 1.196 GB, free: 3.324 MB / 0.823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001745/0.208, allocations: 145.6 kB / 1.196 GB, free: 3.176 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.208, allocations: 13.94 kB / 1.196 GB, free: 3.164 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.208, allocations: 4 kB / 1.196 GB, free: 3.16 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.2081, allocations: 0 / 1.196 GB, free: 3.16 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.999e-05/0.2081, allocations: 19.98 kB / 1.196 GB, free: 3.141 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.2081, allocations: 384 / 1.196 GB, free: 3.141 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.597e-05/0.2082, allocations: 15.98 kB / 1.196 GB, free: 3.125 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.2082, allocations: 4 kB / 1.196 GB, free: 3.121 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 7.215e-05/0.2083, allocations: 122.2 kB / 1.196 GB, free: 2.992 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-06/0.2083, allocations: 15.89 kB / 1.196 GB, free: 2.977 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002033/0.2085, allocations: 145.9 kB / 1.196 GB, free: 2.824 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2085, allocations: 4 kB / 1.196 GB, free: 2.82 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2085, allocations: 0 / 1.196 GB, free: 2.82 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.2085, allocations: 0 / 1.196 GB, free: 2.82 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003157/0.2088, allocations: 389.4 kB / 1.197 GB, free: 2.391 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.2088, allocations: 4 kB / 1.197 GB, free: 2.387 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.322e-05/0.2088, allocations: 8 kB / 1.197 GB, free: 2.379 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.2088, allocations: 0 / 1.197 GB, free: 2.379 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.2088, allocations: 7.984 kB / 1.197 GB, free: 2.371 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.2088, allocations: 0 / 1.197 GB, free: 2.371 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2088, allocations: 0 / 1.197 GB, free: 2.371 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001931/0.209, allocations: 235.4 kB / 1.197 GB, free: 2.125 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.089e-05/0.2091, allocations: 7.953 kB / 1.197 GB, free: 2.117 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.2091, allocations: 3.984 kB / 1.197 GB, free: 2.113 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.714e-05/0.2091, allocations: 15.98 kB / 1.197 GB, free: 2.098 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.818e-05/0.2092, allocations: 3.938 kB / 1.197 GB, free: 2.094 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.2092, allocations: 11.92 kB / 1.197 GB, free: 2.082 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.297e-05/0.2092, allocations: 87.22 kB / 1.197 GB, free: 1.996 MB / 0.823 GB Notification: Performance of sort global known variables: time 5e-08/0.2092, allocations: 0 / 1.197 GB, free: 1.996 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001648/0.2094, allocations: 20 kB / 1.197 GB, free: 1.977 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006569/0.21, allocations: 0.7828 MB / 1.198 GB, free: 1.168 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.000176/0.2102, allocations: 95.98 kB / 1.198 GB, free: 1.074 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2102, allocations: 4.062 kB / 1.198 GB, free: 1.07 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 6.755e-05/0.2103, allocations: 43.92 kB / 1.198 GB, free: 1.027 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001875/0.2105, allocations: 13.12 kB / 1.198 GB, free: 1.016 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.2116, allocations: 1.498 MB / 1.2 GB, free: 15.43 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/0.2118, allocations: 0.6923 MB / 1.2 GB, free: 14.71 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 3.139e-05/0.2118, allocations: 4.625 kB / 1.2 GB, free: 14.71 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.03e-05/0.2118, allocations: 19.42 kB / 1.2 GB, free: 14.69 MB / 0.8387 GB Notification: Performance of SimCode: time 7.22e-07/0.2118, allocations: 0 / 1.2 GB, free: 14.69 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01463/0.2265, allocations: 2.224 MB / 1.202 GB, free: 12.59 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.805/7.031, allocations: 0 / 1.202 GB, free: 12.59 MB / 0.8387 GB " [Timeout remaining time 653] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_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_FirstOrderHold.fmu > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.660112582147121] Failed to read output from testmodel.py, exit status != 0: 7.108801788650453 7.119564981 6.912324205 Calling exit ...