Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.0009666/0.0009666, allocations: 101.5 kB / 18.95 MB, free: 1.188 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.001041/0.001041, allocations: 212 kB / 22.25 MB, free: 3.578 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.9806/0.9806, allocations: 230.6 MB / 256 MB, free: 9.605 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.8124/0.8124, allocations: 203.8 MB / 0.5042 GB, free: 10.44 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS 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.000921/0.000921, allocations: 67.39 kB / 0.7182 GB, free: 4.043 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4715/0.4724, allocations: 102 MB / 0.8178 GB, free: 1.039 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001513/0.474, allocations: 0.6623 MB / 0.8184 GB, free: 0.625 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001049/0.475, allocations: 1.092 MB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.633e-05/0.4751, allocations: 0 / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.924e-05/0.4751, allocations: 3.938 kB / 0.8195 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.719e-05/0.4752, allocations: 13 kB / 0.8195 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003362/0.4755, allocations: 49.45 kB / 0.8195 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.4756, allocations: 56.67 kB / 0.8196 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.4757, allocations: 8.406 kB / 0.8196 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.349e-05/0.4758, allocations: 23.2 kB / 0.8196 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.434e-05/0.4759, allocations: 21.97 kB / 0.8197 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.4759, allocations: 3.688 kB / 0.8197 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.529e-05/0.4759, allocations: 20.55 kB / 0.8197 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.274e-05/0.476, allocations: 6.766 kB / 0.8197 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.294e-05/0.476, allocations: 20.64 kB / 0.8197 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.4761, allocations: 65.86 kB / 0.8198 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.4761, allocations: 4 kB / 0.8198 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.575e-06/0.4761, allocations: 0 / 0.8198 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.291e-06/0.4761, allocations: 0 / 0.8198 GB, free: 15.7 MB / 0.6198 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.0005681/0.4767, allocations: 302.8 kB / 0.8201 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.4767, allocations: 8.797 kB / 0.8201 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.649e-05/0.4768, allocations: 36.64 kB / 0.8201 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.294e-05/0.4769, allocations: 5.219 kB / 0.8201 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.916e-05/0.477, allocations: 115.5 kB / 0.8202 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.477, allocations: 6.875 kB / 0.8202 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.477, allocations: 5.031 kB / 0.8202 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.4771, allocations: 65.69 kB / 0.8203 GB, free: 15.19 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.4772, allocations: 3.938 kB / 0.8203 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.4772, allocations: 6.062 kB / 0.8203 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.4772, allocations: 1.375 kB / 0.8203 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/0.4773, allocations: 43 kB / 0.8203 GB, free: 15.17 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003737/0.4776, allocations: 243.5 kB / 0.8206 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.4778, allocations: 59.12 kB / 0.8206 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.645e-05/0.4778, allocations: 32.45 kB / 0.8207 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.4779, allocations: 8.297 kB / 0.8207 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002724/0.4781, allocations: 75.58 kB / 0.8207 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.4781, allocations: 3.938 kB / 0.8207 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0003024/0.4784, allocations: 132.9 kB / 0.8209 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.4785, allocations: 55.34 kB / 0.8209 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.211e-05/0.4785, allocations: 106.4 kB / 0.821 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.4785, allocations: 25.7 kB / 0.8211 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.424e-05/0.4786, allocations: 85.59 kB / 0.8211 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.4786, allocations: 20.2 kB / 0.8212 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-05/0.4786, allocations: 23.02 kB / 0.8212 GB, free: 14.42 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.4787, allocations: 322.6 kB / 0.8215 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.167e-05/0.4788, allocations: 27.52 kB / 0.8215 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.87e-05/0.4788, allocations: 62.78 kB / 0.8216 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001222/0.479, allocations: 86.03 kB / 0.8216 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.479, allocations: 0 / 0.8216 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001644/0.4791, allocations: 122.5 kB / 0.8218 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.4792, allocations: 5.875 kB / 0.8218 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.4792, allocations: 0.5625 kB / 0.8218 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.4792, allocations: 2.188 kB / 0.8218 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.365e-05/0.4792, allocations: 21.11 kB / 0.8218 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.4793, allocations: 6.906 kB / 0.8218 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.734e-05/0.4793, allocations: 13.95 kB / 0.8218 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.4793, allocations: 5.234 kB / 0.8218 GB, free: 13.91 MB / 0.6198 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 0.0002655/0.4796, allocations: 123.2 kB / 0.8219 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.234e-06/0.4796, allocations: 1.75 kB / 0.8219 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001865/0.4798, allocations: 109.2 kB / 0.822 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.4798, allocations: 0.7812 kB / 0.822 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4798, allocations: 6.562 kB / 0.8221 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.4798, allocations: 0 / 0.8221 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002979/0.4801, allocations: 320.4 kB / 0.8224 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4801, allocations: 5 kB / 0.8224 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.588e-05/0.4801, allocations: 10.69 kB / 0.8224 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.4801, allocations: 1.062 kB / 0.8224 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.4801, allocations: 5.688 kB / 0.8224 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4801, allocations: 0 / 0.8224 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4801, allocations: 5.703 kB / 0.8224 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001588/0.4803, allocations: 199.2 kB / 0.8226 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.114e-06/0.4803, allocations: 15.67 kB / 0.8226 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.4803, allocations: 0.6562 kB / 0.8226 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.805e-05/0.4803, allocations: 13.52 kB / 0.8226 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.077e-05/0.4804, allocations: 9.312 kB / 0.8226 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.4804, allocations: 3.875 kB / 0.8226 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.807e-05/0.4804, allocations: 84.41 kB / 0.8227 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.4804, allocations: 0 / 0.8227 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001637/0.4806, allocations: 15.34 kB / 0.8227 GB, free: 13.17 MB / 0.6198 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.0003667/0.4809, allocations: 0.74 MB / 0.8234 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001688/0.4811, allocations: 77.86 kB / 0.8235 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4811, allocations: 0 / 0.8235 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.479e-05/0.4812, allocations: 29.16 kB / 0.8235 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001906/0.4814, allocations: 12.05 kB / 0.8235 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.4827, allocations: 1.425 MB / 0.8249 GB, free: 11.15 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.829e-05/0.4827, allocations: 65.59 kB / 0.825 GB, free: 11.08 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3e-05/0.4827, allocations: 3.656 kB / 0.825 GB, free: 11.08 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.761e-05/0.4828, allocations: 17.61 kB / 0.825 GB, free: 11.07 MB / 0.6198 GB Notification: Performance of SimCode: time 8.11e-07/0.4828, allocations: 7.938 kB / 0.825 GB, free: 11.07 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01518/0.498, allocations: 2.378 MB / 0.8273 GB, free: 10.17 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.727/7.225, allocations: 8.344 kB / 0.8274 GB, free: 10.17 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.30886214086786] Failed to read output from testmodel.py, exit status != 0: 7.302695227786899 7.313624167 6.835076341 Calling exit ...