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.0007768/0.0007768, 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.0008543/0.0008543, 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 0.91/0.91, allocations: 230.6 MB / 256 MB, free: 9.812 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.03696/0.03696, allocations: 12.18 MB / 324.6 MB, free: 6.27 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.0004094/0.0004094, allocations: 43.81 kB / 384.1 MB, free: 10.67 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.768/1.768, allocations: 353.8 MB / 0.7787 GB, free: 3.086 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.0015/0.0015, allocations: 118.3 kB / 1.06 GB, free: 25.1 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2301, allocations: 134.9 MB / 1.192 GB, free: 7.902 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001521/0.2316, allocations: 0.6751 MB / 1.192 GB, free: 7.23 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.2327, allocations: 1.129 MB / 1.194 GB, free: 6.09 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.776e-05/0.2327, allocations: 0 / 1.194 GB, free: 6.09 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.993e-05/0.2328, allocations: 3.938 kB / 1.194 GB, free: 6.086 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.961e-05/0.2328, allocations: 11.94 kB / 1.194 GB, free: 6.074 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002972/0.2331, allocations: 43.83 kB / 1.194 GB, free: 6.031 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 9.51e-05/0.2332, allocations: 55.78 kB / 1.194 GB, free: 5.977 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.616e-05/0.2333, allocations: 8 kB / 1.194 GB, free: 5.969 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.585e-05/0.2334, allocations: 23.91 kB / 1.194 GB, free: 5.945 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 4.877e-05/0.2334, allocations: 19.92 kB / 1.194 GB, free: 5.926 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.2334, allocations: 8 kB / 1.194 GB, free: 5.918 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 6.045e-05/0.2335, allocations: 19.98 kB / 1.194 GB, free: 5.898 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 1.936e-05/0.2335, allocations: 7.984 kB / 1.194 GB, free: 5.891 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 3.628e-05/0.2336, allocations: 31.84 kB / 1.194 GB, free: 5.859 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001271/0.2337, allocations: 72 kB / 1.194 GB, free: 5.789 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.2337, allocations: 0 / 1.194 GB, free: 5.789 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2337, allocations: 3.938 kB / 1.194 GB, free: 5.785 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.2337, allocations: 0 / 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004322/0.2341, allocations: 294.2 kB / 1.194 GB, free: 5.465 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.2342, allocations: 8.031 kB / 1.194 GB, free: 5.457 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.887e-05/0.2342, allocations: 34.75 kB / 1.194 GB, free: 5.414 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.139e-05/0.2343, allocations: 12.89 kB / 1.194 GB, free: 5.402 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.213e-05/0.2343, allocations: 110.5 kB / 1.194 GB, free: 5.27 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.2344, allocations: 4.375 kB / 1.194 GB, free: 5.266 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.2344, allocations: 384 / 1.194 GB, free: 5.266 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.2345, allocations: 70.16 kB / 1.194 GB, free: 5.191 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.495e-06/0.2345, allocations: 3.938 kB / 1.194 GB, free: 5.188 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.988e-06/0.2345, allocations: 4 kB / 1.194 GB, free: 5.184 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.2345, allocations: 0 / 1.194 GB, free: 5.184 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.692e-05/0.2346, allocations: 43.95 kB / 1.194 GB, free: 5.141 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003484/0.235, allocations: 251.9 kB / 1.195 GB, free: 4.852 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.2351, allocations: 54.48 kB / 1.195 GB, free: 4.789 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.536e-05/0.2351, allocations: 36.95 kB / 1.195 GB, free: 4.75 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.2352, allocations: 4.062 kB / 1.195 GB, free: 4.746 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001525/0.2353, allocations: 79.38 kB / 1.195 GB, free: 4.656 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.2353, allocations: 0 / 1.195 GB, free: 4.656 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0002555/0.2356, allocations: 117.6 kB / 1.195 GB, free: 4.535 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.993e-05/0.2356, allocations: 55.34 kB / 1.195 GB, free: 4.469 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.179e-05/0.2357, allocations: 105.9 kB / 1.195 GB, free: 4.355 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.2357, allocations: 33.69 kB / 1.195 GB, free: 4.316 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.399e-05/0.2357, allocations: 84.09 kB / 1.195 GB, free: 4.23 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.2357, allocations: 27.77 kB / 1.195 GB, free: 4.203 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.2358, allocations: 25.7 kB / 1.195 GB, free: 4.172 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.548e-05/0.2359, allocations: 318.8 kB / 1.196 GB, free: 3.852 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.451e-05/0.2359, allocations: 27.97 kB / 1.196 GB, free: 3.824 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.047e-05/0.236, allocations: 64.27 kB / 1.196 GB, free: 3.746 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.2361, allocations: 96.17 kB / 1.196 GB, free: 3.637 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2361, allocations: 0 / 1.196 GB, free: 3.637 MB / 0.823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001614/0.2363, allocations: 117.5 kB / 1.196 GB, free: 3.516 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.2363, allocations: 11.94 kB / 1.196 GB, free: 3.504 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.2363, allocations: 0 / 1.196 GB, free: 3.504 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.2363, allocations: 4 kB / 1.196 GB, free: 3.5 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.367e-05/0.2364, allocations: 20.36 kB / 1.196 GB, free: 3.48 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2364, allocations: 3.938 kB / 1.196 GB, free: 3.477 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.425e-05/0.2364, allocations: 8 kB / 1.196 GB, free: 3.469 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.2364, allocations: 7.984 kB / 1.196 GB, free: 3.461 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.302e-05/0.2365, allocations: 117.8 kB / 1.196 GB, free: 3.336 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.765e-06/0.2365, allocations: 7.953 kB / 1.196 GB, free: 3.328 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001724/0.2367, allocations: 106 kB / 1.196 GB, free: 3.215 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2367, allocations: 8 kB / 1.196 GB, free: 3.207 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2367, allocations: 0 / 1.196 GB, free: 3.207 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2367, allocations: 0 / 1.196 GB, free: 3.207 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002954/0.237, allocations: 330 kB / 1.196 GB, free: 2.836 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.237, allocations: 0 / 1.196 GB, free: 2.836 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.345e-05/0.237, allocations: 11.98 kB / 1.196 GB, free: 2.824 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.237, allocations: 0 / 1.196 GB, free: 2.824 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.237, allocations: 0 / 1.196 GB, free: 2.824 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.237, allocations: 11.94 kB / 1.196 GB, free: 2.812 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.237, allocations: 80 / 1.196 GB, free: 2.812 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001634/0.2372, allocations: 203.4 kB / 1.197 GB, free: 2.598 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-06/0.2372, allocations: 3.938 kB / 1.197 GB, free: 2.594 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.2372, allocations: 3.984 kB / 1.197 GB, free: 2.59 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.978e-05/0.2372, allocations: 12 kB / 1.197 GB, free: 2.578 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.2373, allocations: 11.92 kB / 1.197 GB, free: 2.566 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.2373, allocations: 4 kB / 1.197 GB, free: 2.562 MB / 0.823 GB Notification: Performance of sorting global known variables: time 2.89e-05/0.2373, allocations: 83.27 kB / 1.197 GB, free: 2.48 MB / 0.823 GB Notification: Performance of sort global known variables: time 6e-08/0.2373, allocations: 0 / 1.197 GB, free: 2.48 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001743/0.2375, allocations: 16.19 kB / 1.197 GB, free: 2.465 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.0004129/0.2379, allocations: 0.7357 MB / 1.197 GB, free: 1.703 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001748/0.2381, allocations: 71.88 kB / 1.198 GB, free: 1.633 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2381, allocations: 0 / 1.198 GB, free: 1.633 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 6.022e-05/0.2382, allocations: 31.92 kB / 1.198 GB, free: 1.602 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002068/0.2384, allocations: 20.17 kB / 1.198 GB, free: 1.582 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.2395, allocations: 1.41 MB / 1.199 GB, free: 72 kB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001936/0.2397, allocations: 0.6807 MB / 1.2 GB, free: 15.36 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 2.955e-05/0.2397, allocations: 11.92 kB / 1.2 GB, free: 15.35 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.483e-05/0.2397, allocations: 15.44 kB / 1.2 GB, free: 15.34 MB / 0.8387 GB Notification: Performance of SimCode: time 8.22e-07/0.2397, allocations: 4 kB / 1.2 GB, free: 15.33 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01605/0.2558, allocations: 1.962 MB / 1.202 GB, free: 13.5 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.709/6.965, allocations: 4.062 kB / 1.202 GB, free: 13.5 MB / 0.8387 GB " [Timeout remaining time 653] (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: 11.469215369783342] Failed to read output from testmodel.py, exit status != 0: 7.0426370510831475 7.057027071 6.820820991 Calling exit ...