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.001157/0.001157, 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.0008438/0.0008438, allocations: 209.7 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.9833/0.9833, 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 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.7845/0.7845, allocations: 203.5 MB / 0.5039 GB, free: 10.69 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.0009863/0.0009863, allocations: 70.69 kB / 0.7178 GB, free: 4.422 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5703/0.5712, allocations: 102 MB / 0.8174 GB, free: 1.223 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001702/0.573, allocations: 0.6448 MB / 0.818 GB, free: 0.8281 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.574, allocations: 1.095 MB / 0.8191 GB, free: 36 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.137e-05/0.5741, allocations: 0 / 0.8191 GB, free: 36 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.387e-05/0.5741, allocations: 6.266 kB / 0.8191 GB, free: 32 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.545e-05/0.5742, allocations: 9.141 kB / 0.8191 GB, free: 24 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003551/0.5745, allocations: 48.59 kB / 0.8191 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.5746, allocations: 51.28 kB / 0.8192 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.5748, allocations: 13.16 kB / 0.8192 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.601e-05/0.5748, allocations: 20.73 kB / 0.8192 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.785e-05/0.5749, allocations: 19.12 kB / 0.8192 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.5749, allocations: 4.688 kB / 0.8192 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.186e-05/0.575, allocations: 23.92 kB / 0.8193 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.448e-05/0.575, allocations: 14.42 kB / 0.8193 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.707e-05/0.5751, allocations: 23.61 kB / 0.8193 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.5752, allocations: 61.34 kB / 0.8194 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.5752, allocations: 0 / 0.8194 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5752, allocations: 0 / 0.8194 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.5752, allocations: 4 kB / 0.8194 GB, free: 15.89 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.0004937/0.5757, allocations: 298.7 kB / 0.8196 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.5758, allocations: 8 kB / 0.8196 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.457e-05/0.5758, allocations: 33.75 kB / 0.8197 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.746e-05/0.5759, allocations: 6.281 kB / 0.8197 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.722e-05/0.576, allocations: 122 kB / 0.8198 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.576, allocations: 6.625 kB / 0.8198 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.576, allocations: 4.891 kB / 0.8198 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.5761, allocations: 72.34 kB / 0.8199 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.5761, allocations: 7.922 kB / 0.8199 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.5762, allocations: 0.5625 kB / 0.8199 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.5762, allocations: 0 / 0.8199 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000115/0.5763, allocations: 49.45 kB / 0.8199 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003798/0.5767, allocations: 244.1 kB / 0.8202 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.5768, allocations: 56.91 kB / 0.8202 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.875e-05/0.5768, allocations: 29.11 kB / 0.8203 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.5769, allocations: 0 / 0.8203 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001676/0.577, allocations: 75.09 kB / 0.8203 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.577, allocations: 0 / 0.8203 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0002995/0.5773, allocations: 129.9 kB / 0.8204 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.5774, allocations: 57.94 kB / 0.8205 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.281e-05/0.5774, allocations: 104.4 kB / 0.8206 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.5775, allocations: 29.7 kB / 0.8206 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.448e-05/0.5775, allocations: 85 kB / 0.8207 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.5775, allocations: 19.5 kB / 0.8207 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.42e-05/0.5776, allocations: 23.09 kB / 0.8208 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.266e-05/0.5776, allocations: 322.8 kB / 0.8211 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.129e-05/0.5777, allocations: 26.38 kB / 0.8211 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.3e-05/0.5778, allocations: 62.05 kB / 0.8211 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001356/0.5779, allocations: 94.08 kB / 0.8212 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.5779, allocations: 256 / 0.8212 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001711/0.5781, allocations: 112.5 kB / 0.8213 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.5781, allocations: 8.094 kB / 0.8214 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.5781, allocations: 7.594 kB / 0.8214 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.5781, allocations: 4.641 kB / 0.8214 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.112e-05/0.5782, allocations: 20.33 kB / 0.8214 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.5782, allocations: 1.109 kB / 0.8214 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.835e-05/0.5783, allocations: 17.95 kB / 0.8214 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.757e-06/0.5783, allocations: 1.625 kB / 0.8214 GB, free: 14.12 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.229e-05/0.5783, allocations: 123.8 kB / 0.8215 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.782e-06/0.5783, allocations: 2.359 kB / 0.8215 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001873/0.5785, allocations: 117.6 kB / 0.8216 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.5785, allocations: 0.5156 kB / 0.8216 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.5785, allocations: 0 / 0.8216 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.5785, allocations: 0.5625 kB / 0.8216 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003144/0.5789, allocations: 332.5 kB / 0.822 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.5789, allocations: 0.6094 kB / 0.822 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.362e-05/0.5789, allocations: 10.09 kB / 0.822 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.5789, allocations: 4 kB / 0.822 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.5789, allocations: 0.7969 kB / 0.822 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.5789, allocations: 1.594 kB / 0.822 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.5789, allocations: 0.5625 kB / 0.822 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001675/0.5791, allocations: 197 kB / 0.8222 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.255e-06/0.5791, allocations: 11.66 kB / 0.8222 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.5791, allocations: 0.75 kB / 0.8222 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.687e-05/0.5791, allocations: 6.719 kB / 0.8222 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.712e-05/0.5792, allocations: 22.16 kB / 0.8222 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.5792, allocations: 2.422 kB / 0.8222 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.733e-05/0.5792, allocations: 81.34 kB / 0.8223 GB, free: 13.38 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5792, allocations: 0 / 0.8223 GB, free: 13.38 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001573/0.5794, allocations: 16.06 kB / 0.8223 GB, free: 13.38 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.0003579/0.5797, allocations: 0.7324 MB / 0.823 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001649/0.5799, allocations: 74.59 kB / 0.8231 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.5799, allocations: 0 / 0.8231 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.255e-05/0.58, allocations: 36.62 kB / 0.8231 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001832/0.5801, allocations: 22 kB / 0.8231 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.5813, allocations: 1.426 MB / 0.8245 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.363e-05/0.5813, allocations: 64.78 kB / 0.8246 GB, free: 11.28 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.869e-05/0.5813, allocations: 4.281 kB / 0.8246 GB, free: 11.28 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.662e-05/0.5814, allocations: 19.16 kB / 0.8246 GB, free: 11.27 MB / 0.6198 GB Notification: Performance of SimCode: time 4.71e-07/0.5814, allocations: 0 / 0.8246 GB, free: 11.27 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01735/0.5987, allocations: 2.367 MB / 0.8269 GB, free: 10.39 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.042/7.641, allocations: 6.266 kB / 0.8269 GB, free: 10.38 MB / 0.6198 GB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.70210367999971] Failed to read output from testmodel.py, exit status != 0: 7.717692851088941 7.729767735 7.152276848 Calling exit ...