Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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.0009825/0.0009825, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001158/0.001158, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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.9082/0.9082, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7066/0.7066, allocations: 154.6 MB / 413.8 MB, free: 0.7969 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.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(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.224e-06/2.224e-06, allocations: 0 / 0.6181 GB, free: 13.52 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.964e-05/2.186e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.52 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001337/0.001359, allocations: 0.6554 MB / 0.6187 GB, free: 12.87 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001045/0.002404, allocations: 1.096 MB / 0.6198 GB, free: 11.76 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.887e-05/0.002453, allocations: 4 kB / 0.6198 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.052e-05/0.002483, allocations: 7.922 kB / 0.6198 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.66e-05/0.00255, allocations: 7.922 kB / 0.6198 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003235/0.002873, allocations: 43.77 kB / 0.6199 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 9.175e-05/0.002965, allocations: 55.78 kB / 0.6199 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.003069, allocations: 8 kB / 0.6199 GB, free: 11.63 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 8.204e-05/0.003151, allocations: 35.91 kB / 0.62 GB, free: 11.6 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.392e-05/0.003195, allocations: 15.97 kB / 0.62 GB, free: 11.58 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.003211, allocations: 4 kB / 0.62 GB, free: 11.58 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.821e-05/0.003279, allocations: 27.92 kB / 0.62 GB, free: 11.55 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.127e-05/0.003301, allocations: 11.92 kB / 0.62 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.843e-05/0.003329, allocations: 11.98 kB / 0.62 GB, free: 11.53 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.003466, allocations: 71.77 kB / 0.6201 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.003469, allocations: 0 / 0.6201 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.693e-06/0.003471, allocations: 3.938 kB / 0.6201 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.479e-06/0.003475, allocations: 0 / 0.6201 GB, free: 11.45 MB / 0.5886 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.0004649/0.00394, allocations: 294.2 kB / 0.6204 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.003986, allocations: 8.031 kB / 0.6204 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.767e-05/0.004024, allocations: 38.75 kB / 0.6204 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.074e-05/0.004094, allocations: 4.891 kB / 0.6204 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.522e-05/0.00417, allocations: 105.8 kB / 0.6205 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.004184, allocations: 8.375 kB / 0.6205 GB, free: 10.94 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.004194, allocations: 384 / 0.6205 GB, free: 10.94 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001451/0.004339, allocations: 70.2 kB / 0.6206 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.004346, allocations: 4.188 kB / 0.6206 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.647e-06/0.004355, allocations: 384 / 0.6206 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.004362, allocations: 12.06 kB / 0.6206 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.004462, allocations: 43.89 kB / 0.6207 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000338/0.0048, allocations: 243.9 kB / 0.6209 GB, free: 10.52 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001088/0.004909, allocations: 50.56 kB / 0.6209 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.437e-05/0.004963, allocations: 36.95 kB / 0.621 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.004982, allocations: 3.938 kB / 0.621 GB, free: 10.42 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001505/0.005133, allocations: 83.31 kB / 0.6211 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.005134, allocations: 0 / 0.6211 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0002593/0.005393, allocations: 121.7 kB / 0.6212 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.005427, allocations: 55.41 kB / 0.6212 GB, free: 10.14 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.682e-05/0.005484, allocations: 101.8 kB / 0.6213 GB, free: 10.03 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.005495, allocations: 33.7 kB / 0.6214 GB, free: 9.988 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.437e-05/0.005529, allocations: 88.09 kB / 0.6214 GB, free: 9.898 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.005546, allocations: 19.89 kB / 0.6215 GB, free: 9.879 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.241e-05/0.005579, allocations: 21.72 kB / 0.6215 GB, free: 9.852 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.265e-05/0.005651, allocations: 318.8 kB / 0.6218 GB, free: 9.531 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.419e-05/0.005706, allocations: 27.92 kB / 0.6218 GB, free: 9.504 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.707e-05/0.005773, allocations: 64.2 kB / 0.6219 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.0059, allocations: 92.19 kB / 0.622 GB, free: 9.32 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.005902, allocations: 4 kB / 0.622 GB, free: 9.316 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001613/0.006064, allocations: 121.4 kB / 0.6221 GB, free: 9.191 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.006078, allocations: 4 kB / 0.6221 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.006083, allocations: 128 / 0.6221 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.006096, allocations: 8 kB / 0.6221 GB, free: 9.18 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.542e-05/0.006172, allocations: 15.98 kB / 0.6221 GB, free: 9.164 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.006177, allocations: 0 / 0.6221 GB, free: 9.164 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.797e-05/0.006215, allocations: 12.23 kB / 0.6221 GB, free: 9.152 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.208e-06/0.006224, allocations: 4 kB / 0.6221 GB, free: 9.148 MB / 0.5886 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 7.363e-05/0.006298, allocations: 126.7 kB / 0.6222 GB, free: 9.016 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.377e-06/0.006307, allocations: 7.891 kB / 0.6222 GB, free: 9.008 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001803/0.006487, allocations: 114.1 kB / 0.6224 GB, free: 8.887 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.00649, allocations: 0 / 0.6224 GB, free: 8.887 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.006495, allocations: 3.984 kB / 0.6224 GB, free: 8.883 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.0065, allocations: 0 / 0.6224 GB, free: 8.883 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002936/0.006793, allocations: 329.5 kB / 0.6227 GB, free: 8.512 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.006795, allocations: 3.938 kB / 0.6227 GB, free: 8.508 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.004e-05/0.006835, allocations: 12 kB / 0.6227 GB, free: 8.496 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.006837, allocations: 0 / 0.6227 GB, free: 8.496 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.006847, allocations: 3.984 kB / 0.6227 GB, free: 8.492 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.006849, allocations: 4 kB / 0.6227 GB, free: 8.488 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.00685, allocations: 0 / 0.6227 GB, free: 8.488 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002972/0.007148, allocations: 199.8 kB / 0.6229 GB, free: 8.277 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.404e-06/0.007155, allocations: 3.984 kB / 0.6229 GB, free: 8.273 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.00717, allocations: 4 kB / 0.6229 GB, free: 8.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.958e-05/0.00722, allocations: 11.98 kB / 0.6229 GB, free: 8.258 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.552e-05/0.007255, allocations: 3.984 kB / 0.6229 GB, free: 8.254 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.007267, allocations: 4 kB / 0.6229 GB, free: 8.25 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.881e-05/0.007296, allocations: 91.27 kB / 0.623 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.007296, allocations: 0 / 0.623 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001762/0.007472, allocations: 12 kB / 0.623 GB, free: 8.148 MB / 0.5886 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.0003804/0.007852, allocations: 0.7397 MB / 0.6237 GB, free: 7.383 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001575/0.00801, allocations: 67.88 kB / 0.6238 GB, free: 7.316 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.008011, allocations: 4.188 kB / 0.6238 GB, free: 7.312 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.695e-05/0.008068, allocations: 27.98 kB / 0.6238 GB, free: 7.285 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001917/0.00826, allocations: 16.11 kB / 0.6238 GB, free: 7.27 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.009265, allocations: 1.423 MB / 0.6252 GB, free: 5.742 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.178e-05/0.009307, allocations: 69.41 kB / 0.6253 GB, free: 5.656 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.879e-05/0.009336, allocations: 4 kB / 0.6253 GB, free: 5.652 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.59e-05/0.009372, allocations: 16.48 kB / 0.6253 GB, free: 5.637 MB / 0.5886 GB Notification: Performance of SimCode: time 7.41e-07/0.009372, allocations: 0 / 0.6253 GB, free: 5.637 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01693/0.02631, allocations: 2.51 MB / 0.6278 GB, free: 3.285 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.217/7.243, allocations: 4.641 kB / 0.6278 GB, free: 3.281 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.977403684519231] Failed to read output from testmodel.py, exit status != 0: 7.324348030611873 7.333963344 7.328044627 Calling exit ...