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.0008112/0.0008112, allocations: 105.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.0009301/0.0009301, allocations: 209.2 kB / 22.25 MB, free: 3.586 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.965/0.965, allocations: 230.6 MB / 256 MB, free: 9.656 MB / 202.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.792/0.792, allocations: 203.5 MB / 0.5039 GB, free: 10.73 MB / 410.7 MB " [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: 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.0009123/0.0009123, allocations: 66.27 kB / 0.7178 GB, free: 4.441 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4747/0.4756, allocations: 102 MB / 0.8174 GB, free: 1.238 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001374/0.477, allocations: 0.6518 MB / 0.818 GB, free: 0.8359 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000942/0.4779, allocations: 1.091 MB / 0.8191 GB, free: 48 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.406e-05/0.478, allocations: 3.906 kB / 0.8191 GB, free: 48 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.842e-05/0.478, allocations: 8.578 kB / 0.8191 GB, free: 40 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.293e-05/0.4781, allocations: 8.5 kB / 0.8191 GB, free: 32 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002754/0.4783, allocations: 53.16 kB / 0.8191 GB, free: 0 / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.4784, allocations: 44.92 kB / 0.8192 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.962e-05/0.4785, allocations: 8.141 kB / 0.8192 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.45e-05/0.4786, allocations: 25.25 kB / 0.8192 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.27e-05/0.4786, allocations: 25.02 kB / 0.8192 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.345e-05/0.4787, allocations: 4.438 kB / 0.8192 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.783e-05/0.4787, allocations: 18.66 kB / 0.8193 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.345e-05/0.4787, allocations: 13.45 kB / 0.8193 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.914e-05/0.4788, allocations: 15.64 kB / 0.8193 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.4789, allocations: 67.34 kB / 0.8194 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.4789, allocations: 0 / 0.8194 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.964e-06/0.4789, allocations: 0 / 0.8194 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.4789, allocations: 0 / 0.8194 GB, free: 15.91 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.0004412/0.4794, allocations: 297.1 kB / 0.8196 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.4794, allocations: 11.28 kB / 0.8196 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.936e-05/0.4794, allocations: 31.59 kB / 0.8197 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.894e-05/0.4795, allocations: 9.281 kB / 0.8197 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.142e-05/0.4796, allocations: 127.2 kB / 0.8198 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.4796, allocations: 12.19 kB / 0.8198 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.4796, allocations: 0.9375 kB / 0.8198 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001469/0.4797, allocations: 65.88 kB / 0.8199 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.4798, allocations: 3.938 kB / 0.8199 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.729e-06/0.4798, allocations: 4.594 kB / 0.8199 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.4798, allocations: 0 / 0.8199 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000111/0.4799, allocations: 44.27 kB / 0.8199 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003436/0.4802, allocations: 250.8 kB / 0.8202 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/0.4803, allocations: 52.8 kB / 0.8202 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.381e-05/0.4804, allocations: 26.94 kB / 0.8202 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.4804, allocations: 4.578 kB / 0.8203 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001511/0.4806, allocations: 71.34 kB / 0.8203 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.4806, allocations: 0 / 0.8203 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0002855/0.4808, allocations: 138.2 kB / 0.8205 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.4809, allocations: 53.11 kB / 0.8205 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.022e-05/0.4809, allocations: 106.4 kB / 0.8206 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.481, allocations: 25.7 kB / 0.8206 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.374e-05/0.481, allocations: 89.7 kB / 0.8207 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.481, allocations: 13.03 kB / 0.8207 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.255e-05/0.481, allocations: 26.52 kB / 0.8208 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.561e-05/0.4811, allocations: 320.3 kB / 0.8211 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.753e-05/0.4812, allocations: 29.36 kB / 0.8211 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.862e-05/0.4812, allocations: 58.77 kB / 0.8211 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.4814, allocations: 94.61 kB / 0.8212 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4814, allocations: 0 / 0.8212 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001534/0.4815, allocations: 116 kB / 0.8213 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.4815, allocations: 4.688 kB / 0.8213 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.4815, allocations: 0.7031 kB / 0.8213 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.4815, allocations: 3.5 kB / 0.8214 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.862e-05/0.4816, allocations: 20.66 kB / 0.8214 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.4816, allocations: 4.719 kB / 0.8214 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.701e-05/0.4817, allocations: 20.72 kB / 0.8214 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.4817, allocations: 5.359 kB / 0.8214 GB, free: 14.13 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 7.879e-05/0.4817, allocations: 123.7 kB / 0.8215 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.853e-06/0.4817, allocations: 0.6094 kB / 0.8215 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001725/0.4819, allocations: 116.6 kB / 0.8216 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.4819, allocations: 3.938 kB / 0.8216 GB, free: 13.94 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.4819, allocations: 3.938 kB / 0.8216 GB, free: 13.94 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.4819, allocations: 2.719 kB / 0.8216 GB, free: 13.94 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000278/0.4822, allocations: 325.4 kB / 0.8219 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.4822, allocations: 5.188 kB / 0.822 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.248e-05/0.4822, allocations: 10.55 kB / 0.822 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.4822, allocations: 1.375 kB / 0.822 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.4822, allocations: 0.7969 kB / 0.822 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.4823, allocations: 1.469 kB / 0.822 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.4823, allocations: 0 / 0.822 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001588/0.4824, allocations: 201.6 kB / 0.8222 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.863e-06/0.4824, allocations: 4.609 kB / 0.8222 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.4824, allocations: 12 kB / 0.8222 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.841e-05/0.4825, allocations: 6.641 kB / 0.8222 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.4825, allocations: 14.38 kB / 0.8222 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.4825, allocations: 6.641 kB / 0.8222 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.968e-05/0.4826, allocations: 85.28 kB / 0.8223 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.4826, allocations: 1.844 kB / 0.8223 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001665/0.4827, allocations: 11.38 kB / 0.8223 GB, free: 13.39 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.0003713/0.4831, allocations: 0.7345 MB / 0.823 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001577/0.4833, allocations: 67.17 kB / 0.8231 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.4833, allocations: 0 / 0.8231 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.451e-05/0.4833, allocations: 39.56 kB / 0.8231 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001849/0.4835, allocations: 14.48 kB / 0.8231 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.4845, allocations: 1.416 MB / 0.8245 GB, free: 11.37 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.382e-05/0.4846, allocations: 67.39 kB / 0.8246 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.65e-05/0.4846, allocations: 4.5 kB / 0.8246 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.84e-05/0.4846, allocations: 16.03 kB / 0.8246 GB, free: 11.29 MB / 0.6198 GB Notification: Performance of SimCode: time 3.01e-07/0.4846, allocations: 5.469 kB / 0.8246 GB, free: 11.29 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/0.5005, allocations: 2.383 MB / 0.8269 GB, free: 10.39 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.59/7.091, allocations: 5.453 kB / 0.8269 GB, free: 10.39 MB / 0.6198 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: 10.11472289590165] Failed to read output from testmodel.py, exit status != 0: 7.170694286935031 7.184257661 6.703248919 Calling exit ...