Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.000754/0.000754, allocations: 105.5 kB / 18.95 MB, free: 1.176 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.0008456/0.0008456, allocations: 209.2 kB / 22.24 MB, free: 3.715 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.9841/0.9841, allocations: 230.6 MB / 256 MB, free: 9.602 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.7841/0.7841, allocations: 203.8 MB / 0.5042 GB, free: 10.41 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.ZeroOrderHold,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="IDEAS_dev_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.001386/0.001386, allocations: 66.17 kB / 0.7181 GB, free: 4.004 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4904/0.4918, allocations: 102 MB / 0.8178 GB, free: 0.9922 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001394/0.4932, allocations: 0.656 MB / 0.8184 GB, free: 0.582 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001036/0.4943, allocations: 1.091 MB / 0.8195 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.916e-05/0.4943, allocations: 1.438 kB / 0.8195 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.316e-05/0.4943, allocations: 4.688 kB / 0.8195 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.483e-05/0.4944, allocations: 9.766 kB / 0.8195 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.4947, allocations: 53.78 kB / 0.8196 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.848e-05/0.4948, allocations: 55.09 kB / 0.8196 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.218e-05/0.4949, allocations: 4.094 kB / 0.8196 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.669e-05/0.495, allocations: 23.58 kB / 0.8196 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.08e-05/0.495, allocations: 25.59 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.412e-05/0.495, allocations: 3.5 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.145e-05/0.4951, allocations: 18.77 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.604e-05/0.4951, allocations: 13.77 kB / 0.8197 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.184e-05/0.4952, allocations: 21.08 kB / 0.8197 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.4953, allocations: 64.14 kB / 0.8198 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.4953, allocations: 0 / 0.8198 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.874e-06/0.4953, allocations: 7.531 kB / 0.8198 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.4953, allocations: 0 / 0.8198 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004546/0.4958, allocations: 296.6 kB / 0.8201 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.4958, allocations: 10.11 kB / 0.8201 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.105e-05/0.4958, allocations: 31.45 kB / 0.8201 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.4959, allocations: 11.44 kB / 0.8201 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.731e-05/0.496, allocations: 111.8 kB / 0.8202 GB, free: 15.19 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.496, allocations: 8.859 kB / 0.8202 GB, free: 15.19 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.859e-06/0.496, allocations: 6.094 kB / 0.8202 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001603/0.4962, allocations: 69.45 kB / 0.8203 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.4962, allocations: 3.938 kB / 0.8203 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.4962, allocations: 4.641 kB / 0.8203 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.4962, allocations: 3.938 kB / 0.8203 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000121/0.4963, allocations: 43.08 kB / 0.8203 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004795/0.4968, allocations: 246.6 kB / 0.8206 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001557/0.497, allocations: 54.19 kB / 0.8206 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.662e-05/0.497, allocations: 29 kB / 0.8207 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.4971, allocations: 0 / 0.8207 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.4973, allocations: 79.91 kB / 0.8207 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.083e-06/0.4973, allocations: 0 / 0.8207 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0003796/0.4977, allocations: 124 kB / 0.8209 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.4977, allocations: 57.3 kB / 0.8209 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.4978, allocations: 108.8 kB / 0.821 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.4979, allocations: 26.98 kB / 0.821 GB, free: 14.51 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.7e-05/0.4979, allocations: 82.59 kB / 0.8211 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.522e-05/0.4979, allocations: 22.41 kB / 0.8211 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.292e-05/0.498, allocations: 29.25 kB / 0.8212 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4981, allocations: 318.8 kB / 0.8215 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.872e-05/0.4982, allocations: 25.16 kB / 0.8215 GB, free: 14.06 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.961e-05/0.4983, allocations: 59.02 kB / 0.8216 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.4984, allocations: 94.81 kB / 0.8216 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4984, allocations: 0 / 0.8216 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001858/0.4986, allocations: 120.8 kB / 0.8218 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.4986, allocations: 6.219 kB / 0.8218 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.4986, allocations: 0 / 0.8218 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.4986, allocations: 6.938 kB / 0.8218 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.928e-05/0.4987, allocations: 16.47 kB / 0.8218 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.4987, allocations: 1.5 kB / 0.8218 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.023e-05/0.4987, allocations: 17.89 kB / 0.8218 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.4988, allocations: 7.188 kB / 0.8218 GB, free: 13.88 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.419e-05/0.4988, allocations: 120.2 kB / 0.8219 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.343e-06/0.4988, allocations: 11.61 kB / 0.8219 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001899/0.499, allocations: 103.5 kB / 0.822 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.499, allocations: 2.438 kB / 0.822 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.499, allocations: 4 kB / 0.822 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.499, allocations: 0.5625 kB / 0.822 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004238/0.4995, allocations: 333.4 kB / 0.8224 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.4995, allocations: 0 / 0.8224 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.567e-05/0.4995, allocations: 13.39 kB / 0.8224 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.4995, allocations: 0 / 0.8224 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.687e-06/0.4995, allocations: 1.922 kB / 0.8224 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.4995, allocations: 2.281 kB / 0.8224 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.4995, allocations: 3.984 kB / 0.8224 GB, free: 13.38 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001679/0.4997, allocations: 199.8 kB / 0.8226 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.013e-05/0.4997, allocations: 8.5 kB / 0.8226 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.4997, allocations: 0.7969 kB / 0.8226 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.22e-05/0.4998, allocations: 16.48 kB / 0.8226 GB, free: 13.22 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.4998, allocations: 15.33 kB / 0.8226 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.4998, allocations: 2.719 kB / 0.8226 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.801e-05/0.4999, allocations: 86.22 kB / 0.8227 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.4999, allocations: 0 / 0.8227 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001788/0.5, allocations: 12.16 kB / 0.8227 GB, free: 13.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: 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.0006367/0.5007, allocations: 0.7319 MB / 0.8234 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001991/0.5009, allocations: 75.61 kB / 0.8235 GB, free: 12.43 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.5009, allocations: 0.7188 kB / 0.8235 GB, free: 12.43 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.432e-05/0.5009, allocations: 28.41 kB / 0.8235 GB, free: 12.43 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.5012, allocations: 14.25 kB / 0.8235 GB, free: 12.42 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.5023, allocations: 1.428 MB / 0.8249 GB, free: 11.11 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.706e-05/0.5024, allocations: 66.67 kB / 0.825 GB, free: 11.04 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.603e-05/0.5024, allocations: 5.859 kB / 0.825 GB, free: 11.04 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.471e-05/0.5025, allocations: 15.62 kB / 0.825 GB, free: 11.03 MB / 0.6198 GB Notification: Performance of SimCode: time 2.41e-07/0.5025, allocations: 0 / 0.825 GB, free: 11.03 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.5195, allocations: 2.391 MB / 0.8274 GB, free: 10.13 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.444/6.964, allocations: 14.41 kB / 0.8274 GB, free: 10.12 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.89768633292988] Failed to read output from testmodel.py, exit status != 0: 7.043720975983888 7.054969454 6.557575347 Calling exit ...