Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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.0006816/0.0006816, allocations: 101.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.0009016/0.0009016, allocations: 209.2 kB / 22.24 MB, free: 3.57 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.9988/0.9988, allocations: 230.6 MB / 256 MB, free: 9.594 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.7782/0.7782, allocations: 203.8 MB / 0.5042 GB, free: 10.4 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.FirstOrderHold,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",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.0009704/0.0009704, allocations: 66.16 kB / 0.7181 GB, free: 4.055 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5623/0.5632, allocations: 102 MB / 0.8178 GB, free: 1.027 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001418/0.5647, allocations: 0.6632 MB / 0.8184 GB, free: 0.6133 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009651/0.5656, allocations: 1.107 MB / 0.8195 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.589e-05/0.5657, allocations: 2.375 kB / 0.8195 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.871e-05/0.5657, allocations: 4.734 kB / 0.8195 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.848e-05/0.5658, allocations: 4.641 kB / 0.8195 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000277/0.566, allocations: 55.2 kB / 0.8196 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.5661, allocations: 63.39 kB / 0.8196 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.972e-05/0.5662, allocations: 7.531 kB / 0.8196 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.425e-05/0.5663, allocations: 33.44 kB / 0.8197 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.557e-05/0.5664, allocations: 33.2 kB / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.5664, allocations: 11.78 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.162e-05/0.5665, allocations: 22.67 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.497e-05/0.5665, allocations: 13.77 kB / 0.8197 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.263e-05/0.5665, allocations: 29.5 kB / 0.8198 GB, free: 15.67 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.5667, allocations: 77 kB / 0.8199 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.5667, allocations: 0 / 0.8199 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.074e-06/0.5667, allocations: 0 / 0.8199 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.682e-06/0.5667, allocations: 0.875 kB / 0.8199 GB, free: 15.65 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007987/0.5675, allocations: 316 kB / 0.8202 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.5675, allocations: 13.33 kB / 0.8202 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.386e-05/0.5676, allocations: 38.97 kB / 0.8202 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.419e-05/0.5677, allocations: 10.39 kB / 0.8202 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.818e-05/0.5677, allocations: 116.3 kB / 0.8203 GB, free: 15.17 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.5678, allocations: 8.484 kB / 0.8203 GB, free: 15.17 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.5678, allocations: 9.219 kB / 0.8203 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001613/0.5679, allocations: 77.83 kB / 0.8204 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.5679, allocations: 3.938 kB / 0.8204 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.5679, allocations: 0.6562 kB / 0.8204 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.568, allocations: 5.844 kB / 0.8204 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.5681, allocations: 53.61 kB / 0.8205 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004037/0.5685, allocations: 272.2 kB / 0.8207 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001465/0.5686, allocations: 72.44 kB / 0.8208 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.894e-05/0.5687, allocations: 41.05 kB / 0.8208 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.5687, allocations: 3.188 kB / 0.8208 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001674/0.5689, allocations: 96.28 kB / 0.8209 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.192e-06/0.5689, allocations: 0 / 0.8209 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0003498/0.5692, allocations: 174.3 kB / 0.8211 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.5693, allocations: 58.7 kB / 0.8212 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.603e-05/0.5693, allocations: 108.5 kB / 0.8213 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.5694, allocations: 31.58 kB / 0.8213 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.262e-05/0.5694, allocations: 93.17 kB / 0.8214 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/0.5694, allocations: 21.36 kB / 0.8214 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.462e-05/0.5695, allocations: 34.72 kB / 0.8214 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.375e-05/0.5695, allocations: 322.6 kB / 0.8217 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.622e-05/0.5696, allocations: 38.28 kB / 0.8218 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.021e-05/0.5697, allocations: 66.17 kB / 0.8218 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001525/0.5699, allocations: 106 kB / 0.8219 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.5699, allocations: 0 / 0.8219 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002054/0.5701, allocations: 137.5 kB / 0.8221 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.5701, allocations: 10.83 kB / 0.8221 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.5701, allocations: 0 / 0.8221 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.5701, allocations: 2.594 kB / 0.8221 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.5702, allocations: 23.03 kB / 0.8221 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.5702, allocations: 4.219 kB / 0.8221 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.738e-05/0.5703, allocations: 18.17 kB / 0.8221 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.5703, allocations: 5.062 kB / 0.8221 GB, free: 13.8 MB / 0.6198 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 8.013e-05/0.5704, allocations: 120.8 kB / 0.8223 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.255e-05/0.5704, allocations: 10.22 kB / 0.8223 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002483/0.5706, allocations: 148.7 kB / 0.8224 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.5706, allocations: 3.984 kB / 0.8224 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.5706, allocations: 1.406 kB / 0.8224 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.5706, allocations: 7 kB / 0.8224 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003859/0.571, allocations: 374.1 kB / 0.8228 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.571, allocations: 0 / 0.8228 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.39e-05/0.5711, allocations: 10.62 kB / 0.8228 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.5711, allocations: 8.375 kB / 0.8228 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.5711, allocations: 8 kB / 0.8228 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.5711, allocations: 1.344 kB / 0.8228 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.5711, allocations: 0 / 0.8228 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.5713, allocations: 245.6 kB / 0.823 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.063e-05/0.5713, allocations: 7.234 kB / 0.823 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.5713, allocations: 2.609 kB / 0.823 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.417e-05/0.5714, allocations: 8.578 kB / 0.8231 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.631e-05/0.5714, allocations: 15.67 kB / 0.8231 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.5714, allocations: 2.469 kB / 0.8231 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.555e-05/0.5715, allocations: 87.14 kB / 0.8232 GB, free: 13 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7e-08/0.5715, allocations: 0 / 0.8232 GB, free: 13 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000171/0.5716, allocations: 14.91 kB / 0.8232 GB, free: 13 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: 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.0004491/0.5721, allocations: 0.7715 MB / 0.8239 GB, free: 12.31 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001998/0.5723, allocations: 95.92 kB / 0.824 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.5723, allocations: 5.031 kB / 0.824 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.318e-05/0.5724, allocations: 48.33 kB / 0.8241 GB, free: 12.27 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002049/0.5726, allocations: 15.06 kB / 0.8241 GB, free: 12.26 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.574, allocations: 1.492 MB / 0.8255 GB, free: 10.96 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.034e-05/0.574, allocations: 83.47 kB / 0.8256 GB, free: 10.88 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.068e-05/0.5741, allocations: 13.55 kB / 0.8256 GB, free: 10.88 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.556e-05/0.5741, allocations: 19.45 kB / 0.8256 GB, free: 10.86 MB / 0.6198 GB Notification: Performance of SimCode: time 4.91e-07/0.5741, allocations: 3.938 kB / 0.8256 GB, free: 10.86 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01707/0.5912, allocations: 2.65 MB / 0.8282 GB, free: 9.941 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.699/7.29, allocations: 6.594 kB / 0.8282 GB, free: 9.941 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.3481859927997] Failed to read output from testmodel.py, exit status != 0: 7.36674653692171 7.378160834 6.808800303 Calling exit ...