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.0008534/0.0008534, 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.0009199/0.0009199, allocations: 207.6 kB / 22.25 MB, free: 3.59 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.9852/0.9852, allocations: 230.6 MB / 256 MB, free: 9.609 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.8211/0.8211, 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.000997/0.000997, allocations: 75.25 kB / 0.7178 GB, free: 4.438 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5794/0.5804, allocations: 102 MB / 0.8174 GB, free: 1.238 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001748/0.5822, allocations: 0.666 MB / 0.818 GB, free: 0.8281 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.5832, allocations: 1.104 MB / 0.8191 GB, free: 28 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.948e-05/0.5832, allocations: 7.156 kB / 0.8191 GB, free: 24 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3e-05/0.5833, allocations: 0.9375 kB / 0.8191 GB, free: 24 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.302e-05/0.5833, allocations: 8.719 kB / 0.8191 GB, free: 16 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003487/0.5837, allocations: 54.31 kB / 0.8192 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001337/0.5838, allocations: 67.83 kB / 0.8192 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.5839, allocations: 13.44 kB / 0.8192 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.445e-05/0.584, allocations: 28.92 kB / 0.8193 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.079e-05/0.5841, allocations: 23.52 kB / 0.8193 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.877e-05/0.5841, allocations: 8.25 kB / 0.8193 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.897e-05/0.5842, allocations: 32.59 kB / 0.8193 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.128e-05/0.5842, allocations: 18.58 kB / 0.8193 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.269e-05/0.5843, allocations: 22.17 kB / 0.8194 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002057/0.5845, allocations: 81.05 kB / 0.8194 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.5845, allocations: 0 / 0.8194 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.417e-06/0.5845, allocations: 0 / 0.8194 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.226e-06/0.5845, allocations: 4 kB / 0.8194 GB, free: 15.86 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.0006001/0.5851, allocations: 311.2 kB / 0.8197 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.5851, allocations: 11.39 kB / 0.8198 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.889e-05/0.5852, allocations: 36.02 kB / 0.8198 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.492e-05/0.5853, allocations: 9.703 kB / 0.8198 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.96e-05/0.5854, allocations: 112.5 kB / 0.8199 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.5854, allocations: 11.36 kB / 0.8199 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.594e-05/0.5854, allocations: 5.641 kB / 0.8199 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.5856, allocations: 85.84 kB / 0.82 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.5856, allocations: 3.938 kB / 0.82 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.5856, allocations: 1.188 kB / 0.82 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.5856, allocations: 1.25 kB / 0.82 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.5858, allocations: 55.62 kB / 0.8201 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00051/0.5863, allocations: 268.1 kB / 0.8203 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.5865, allocations: 79.84 kB / 0.8204 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.651e-05/0.5865, allocations: 43.28 kB / 0.8204 GB, free: 15 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.5866, allocations: 0 / 0.8204 GB, free: 15 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002235/0.5868, allocations: 95.69 kB / 0.8205 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.5868, allocations: 0 / 0.8205 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0003955/0.5872, allocations: 178.6 kB / 0.8207 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.5872, allocations: 59.98 kB / 0.8208 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.919e-05/0.5873, allocations: 107 kB / 0.8209 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.5874, allocations: 33.14 kB / 0.8209 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.922e-05/0.5874, allocations: 90.86 kB / 0.821 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.783e-05/0.5875, allocations: 22.88 kB / 0.821 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.453e-05/0.5875, allocations: 30.92 kB / 0.821 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.5876, allocations: 325 kB / 0.8213 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.5877, allocations: 35.23 kB / 0.8214 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.5879, allocations: 65.81 kB / 0.8214 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.588, allocations: 107.7 kB / 0.8215 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.588, allocations: 0 / 0.8215 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002409/0.5883, allocations: 141.2 kB / 0.8217 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.5883, allocations: 5.906 kB / 0.8217 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.5883, allocations: 0.7031 kB / 0.8217 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.5883, allocations: 5.531 kB / 0.8217 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.5885, allocations: 23.25 kB / 0.8217 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.5885, allocations: 1.5 kB / 0.8217 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.808e-05/0.5885, allocations: 14.89 kB / 0.8217 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.5885, allocations: 3.156 kB / 0.8217 GB, free: 14.02 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 0.0001211/0.5887, allocations: 128.2 kB / 0.8218 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.5887, allocations: 6.109 kB / 0.8218 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003096/0.589, allocations: 148.1 kB / 0.822 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.589, allocations: 2.719 kB / 0.822 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.589, allocations: 0 / 0.822 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.589, allocations: 0.5156 kB / 0.822 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005206/0.5895, allocations: 383.8 kB / 0.8224 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.5895, allocations: 4.688 kB / 0.8224 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.93e-05/0.5896, allocations: 10.38 kB / 0.8224 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.5896, allocations: 2.75 kB / 0.8224 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.5896, allocations: 4.797 kB / 0.8224 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.5896, allocations: 0.7969 kB / 0.8224 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5896, allocations: 2.25 kB / 0.8224 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002931/0.5899, allocations: 241 kB / 0.8226 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.495e-05/0.5899, allocations: 6.328 kB / 0.8226 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.5899, allocations: 5.891 kB / 0.8226 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.509e-05/0.59, allocations: 9.734 kB / 0.8226 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.783e-05/0.59, allocations: 10.11 kB / 0.8226 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.475e-06/0.59, allocations: 6.672 kB / 0.8226 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.58e-05/0.5901, allocations: 95.88 kB / 0.8227 GB, free: 13.22 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5901, allocations: 1.125 kB / 0.8227 GB, free: 13.22 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001865/0.5903, allocations: 19.31 kB / 0.8228 GB, free: 13.21 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.0004652/0.5907, allocations: 0.7639 MB / 0.8235 GB, free: 12.53 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002077/0.5909, allocations: 95.42 kB / 0.8236 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.5909, allocations: 4.125 kB / 0.8236 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.635e-05/0.591, allocations: 48.31 kB / 0.8236 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.5912, allocations: 15.89 kB / 0.8237 GB, free: 12.48 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.5928, allocations: 1.503 MB / 0.8251 GB, free: 11.18 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.659e-05/0.5928, allocations: 82.14 kB / 0.8252 GB, free: 11.09 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.445e-05/0.5929, allocations: 8.438 kB / 0.8252 GB, free: 11.09 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.348e-05/0.5929, allocations: 22.09 kB / 0.8252 GB, free: 11.08 MB / 0.6198 GB Notification: Performance of SimCode: time 1.302e-06/0.5929, allocations: 0 / 0.8252 GB, free: 11.08 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02226/0.6152, allocations: 2.639 MB / 0.8278 GB, free: 10.18 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.187/7.802, allocations: 11.34 kB / 0.8278 GB, free: 10.17 MB / 0.6198 GB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.953637269325554] Failed to read output from testmodel.py, exit status != 0: 7.883402565028518 7.902141113 7.314602396 Calling exit ...