Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0008827/0.0008827, allocations: 105.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.0009296/0.0009296, allocations: 208.1 kB / 22.25 MB, free: 3.574 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.9512/0.9512, allocations: 230.6 MB / 256 MB, free: 9.59 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.7589/0.7589, 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.FirstOrderHold,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="IDEAS_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.0009948/0.0009948, allocations: 67.02 kB / 0.7178 GB, free: 4.453 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5762/0.5772, allocations: 102 MB / 0.8174 GB, free: 1.246 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00159/0.5788, allocations: 0.6535 MB / 0.818 GB, free: 0.8477 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001185/0.5799, allocations: 1.104 MB / 0.8191 GB, free: 48 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.684e-05/0.58, allocations: 5.125 kB / 0.8191 GB, free: 44 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.612e-05/0.58, allocations: 4.922 kB / 0.8191 GB, free: 40 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.323e-05/0.5801, allocations: 7.672 kB / 0.8191 GB, free: 36 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000335/0.5804, allocations: 55.77 kB / 0.8192 GB, free: 0 / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.5806, allocations: 65.34 kB / 0.8192 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.5807, allocations: 10.27 kB / 0.8192 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.611e-05/0.5808, allocations: 29.45 kB / 0.8193 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.563e-05/0.5809, allocations: 25.33 kB / 0.8193 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.5809, allocations: 13.25 kB / 0.8193 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.4e-05/0.581, allocations: 28.3 kB / 0.8193 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.093e-05/0.581, allocations: 20.97 kB / 0.8193 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.849e-05/0.5811, allocations: 23.28 kB / 0.8194 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001873/0.5812, allocations: 80.28 kB / 0.8194 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.5813, allocations: 0.9375 kB / 0.8194 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.786e-06/0.5813, allocations: 0.6094 kB / 0.8194 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.256e-06/0.5813, allocations: 0 / 0.8194 GB, free: 15.88 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.000531/0.5818, allocations: 312 kB / 0.8197 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.5818, allocations: 12.62 kB / 0.8197 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.915e-05/0.5819, allocations: 37.45 kB / 0.8198 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.265e-05/0.582, allocations: 11.19 kB / 0.8198 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.581e-05/0.5821, allocations: 116.2 kB / 0.8199 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.5821, allocations: 12.14 kB / 0.8199 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.5821, allocations: 4.672 kB / 0.8199 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.5823, allocations: 77.92 kB / 0.82 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.5823, allocations: 3.938 kB / 0.82 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.5823, allocations: 0.5625 kB / 0.82 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.5823, allocations: 3.688 kB / 0.82 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001303/0.5824, allocations: 60.67 kB / 0.8201 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004706/0.5829, allocations: 271.8 kB / 0.8203 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.5831, allocations: 72.8 kB / 0.8204 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.869e-05/0.5832, allocations: 43.78 kB / 0.8204 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.5832, allocations: 0 / 0.8204 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002541/0.5834, allocations: 94.47 kB / 0.8205 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.693e-06/0.5834, allocations: 1.844 kB / 0.8205 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0004084/0.5838, allocations: 180.3 kB / 0.8207 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.5839, allocations: 54.53 kB / 0.8207 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.677e-05/0.584, allocations: 104.9 kB / 0.8208 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/0.584, allocations: 34.23 kB / 0.8209 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.639e-05/0.5841, allocations: 91.77 kB / 0.821 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.491e-05/0.5841, allocations: 21.38 kB / 0.821 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.107e-05/0.5841, allocations: 35.44 kB / 0.821 GB, free: 14.53 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.5842, allocations: 325 kB / 0.8213 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.249e-05/0.5843, allocations: 33.64 kB / 0.8214 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.7e-05/0.5844, allocations: 67.81 kB / 0.8214 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.5846, allocations: 99.81 kB / 0.8215 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.5846, allocations: 5.281 kB / 0.8215 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002143/0.5848, allocations: 142.5 kB / 0.8217 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.5848, allocations: 4.984 kB / 0.8217 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.5848, allocations: 2.812 kB / 0.8217 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.5849, allocations: 0 / 0.8217 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.751e-05/0.585, allocations: 23.97 kB / 0.8217 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.585, allocations: 1.406 kB / 0.8217 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.794e-05/0.585, allocations: 11.31 kB / 0.8217 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.585, allocations: 13.06 kB / 0.8217 GB, free: 14.03 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 7.557e-05/0.5851, allocations: 125.1 kB / 0.8218 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.075e-05/0.5851, allocations: 7 kB / 0.8218 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002249/0.5853, allocations: 144.1 kB / 0.822 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.5853, allocations: 3.719 kB / 0.822 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.5853, allocations: 0 / 0.822 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.5853, allocations: 0.75 kB / 0.822 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003751/0.5857, allocations: 381.5 kB / 0.8223 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.5857, allocations: 1.75 kB / 0.8223 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.075e-05/0.5857, allocations: 10.94 kB / 0.8224 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.5858, allocations: 0.6562 kB / 0.8224 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.5858, allocations: 7.016 kB / 0.8224 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.5858, allocations: 8.531 kB / 0.8224 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.5858, allocations: 0 / 0.8224 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002163/0.586, allocations: 245.6 kB / 0.8226 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.496e-06/0.586, allocations: 10.17 kB / 0.8226 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.586, allocations: 1.344 kB / 0.8226 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.372e-05/0.5861, allocations: 14.47 kB / 0.8226 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.274e-05/0.5861, allocations: 10.41 kB / 0.8226 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.5861, allocations: 6.297 kB / 0.8227 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.33e-05/0.5861, allocations: 84.16 kB / 0.8227 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.5861, allocations: 0 / 0.8227 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001762/0.5863, allocations: 21.81 kB / 0.8228 GB, free: 13.23 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.0004553/0.5868, allocations: 0.7725 MB / 0.8235 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002147/0.587, allocations: 92.58 kB / 0.8236 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.587, allocations: 0 / 0.8236 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.525e-05/0.5871, allocations: 44.47 kB / 0.8236 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002165/0.5873, allocations: 14.95 kB / 0.8237 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.5886, allocations: 1.506 MB / 0.8251 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.279e-05/0.5887, allocations: 81.89 kB / 0.8252 GB, free: 11.12 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.616e-05/0.5887, allocations: 4.469 kB / 0.8252 GB, free: 11.12 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.485e-05/0.5888, allocations: 27.45 kB / 0.8252 GB, free: 11.1 MB / 0.6198 GB Notification: Performance of SimCode: time 2.8e-07/0.5888, allocations: 0 / 0.8252 GB, free: 11.1 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01813/0.6069, allocations: 2.642 MB / 0.8278 GB, free: 10.19 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.719/7.326, allocations: 14.11 kB / 0.8278 GB, free: 10.18 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.34611457772553] Failed to read output from testmodel.py, exit status != 0: 7.405385384336114 7.420742516 6.83713963 Calling exit ...