Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.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.0007235/0.0007235, allocations: 72.45 kB / 19.9 MB, free: 16 kB / 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.0007279/0.0007279, allocations: 165.9 kB / 23.18 MB, free: 1.383 MB / 18.57 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.8068/0.8068, allocations: 177.2 MB / 203.6 MB, free: 5.777 MB / 186.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.6953/0.6953, allocations: 155 MB / 415 MB, free: 480 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler") [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.0008933/0.0008933, allocations: 63.91 kB / 0.6199 GB, free: 12.77 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3965, allocations: 102 MB / 0.7195 GB, free: 23.46 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001349/0.3978, allocations: 0.6512 MB / 0.7201 GB, free: 23.06 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.000963/0.3988, allocations: 1.086 MB / 0.7212 GB, free: 22.27 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.646e-05/0.3988, allocations: 1.469 kB / 0.7212 GB, free: 22.27 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 2.85e-05/0.3988, allocations: 0.6562 kB / 0.7212 GB, free: 22.27 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 6.384e-05/0.3989, allocations: 5.969 kB / 0.7212 GB, free: 22.27 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002745/0.3992, allocations: 47.38 kB / 0.7212 GB, free: 22.24 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 9.002e-05/0.3993, allocations: 48.84 kB / 0.7213 GB, free: 22.22 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 8.901e-05/0.3994, allocations: 12.94 kB / 0.7213 GB, free: 22.21 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 7.596e-05/0.3994, allocations: 25.44 kB / 0.7213 GB, free: 22.2 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 4.556e-05/0.3995, allocations: 25.97 kB / 0.7213 GB, free: 22.19 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.3995, allocations: 4.375 kB / 0.7213 GB, free: 22.19 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 5.996e-05/0.3996, allocations: 19.48 kB / 0.7213 GB, free: 22.18 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 2.087e-05/0.3996, allocations: 8.109 kB / 0.7213 GB, free: 22.18 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 2.951e-05/0.3996, allocations: 20.02 kB / 0.7214 GB, free: 22.17 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.3998, allocations: 67.61 kB / 0.7214 GB, free: 22.14 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3998, allocations: 3.938 kB / 0.7214 GB, free: 22.14 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3998, allocations: 0 / 0.7214 GB, free: 22.14 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.3998, allocations: 1.031 kB / 0.7214 GB, free: 22.14 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004191/0.4002, allocations: 302.4 kB / 0.7217 GB, free: 21.85 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.4002, allocations: 18.03 kB / 0.7217 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.183e-05/0.4003, allocations: 4.812 kB / 0.7217 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.577e-05/0.4003, allocations: 118.9 kB / 0.7219 GB, free: 21.7 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.4004, allocations: 2.656 kB / 0.7219 GB, free: 21.7 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.4004, allocations: 6.156 kB / 0.7219 GB, free: 21.7 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001432/0.4005, allocations: 63.25 kB / 0.7219 GB, free: 21.66 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.4005, allocations: 4.188 kB / 0.7219 GB, free: 21.66 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.4005, allocations: 8.547 kB / 0.7219 GB, free: 21.65 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.4005, allocations: 1.188 kB / 0.7219 GB, free: 21.65 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001051/0.4006, allocations: 39.11 kB / 0.722 GB, free: 21.64 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002872/0.4009, allocations: 212.1 kB / 0.7222 GB, free: 21.43 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.401, allocations: 50.88 kB / 0.7222 GB, free: 21.4 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.386e-05/0.4011, allocations: 35.53 kB / 0.7223 GB, free: 21.38 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.4011, allocations: 6.219 kB / 0.7223 GB, free: 21.38 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001271/0.4012, allocations: 76.14 kB / 0.7223 GB, free: 21.32 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.303e-06/0.4012, allocations: 0 / 0.7223 GB, free: 21.32 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002647/0.4015, allocations: 118.9 kB / 0.7225 GB, free: 21.27 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.614e-05/0.4015, allocations: 52.47 kB / 0.7225 GB, free: 21.21 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.932e-05/0.4016, allocations: 105.2 kB / 0.7226 GB, free: 21.11 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.824e-06/0.4016, allocations: 30.77 kB / 0.7226 GB, free: 21.07 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.322e-05/0.4016, allocations: 86.72 kB / 0.7227 GB, free: 20.98 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.4016, allocations: 20.89 kB / 0.7227 GB, free: 20.97 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.992e-05/0.4017, allocations: 22.73 kB / 0.7228 GB, free: 20.95 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 2.924e-05/0.4017, allocations: 313.6 kB / 0.7231 GB, free: 20.64 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.499e-05/0.4017, allocations: 24.17 kB / 0.7231 GB, free: 20.63 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.849e-05/0.4018, allocations: 54.47 kB / 0.7231 GB, free: 20.59 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001098/0.4019, allocations: 78.53 kB / 0.7232 GB, free: 20.54 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4019, allocations: 0 / 0.7232 GB, free: 20.54 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000145/0.4021, allocations: 109.9 kB / 0.7233 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.4021, allocations: 6.578 kB / 0.7233 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.4021, allocations: 5.156 kB / 0.7233 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.4021, allocations: 1.281 kB / 0.7233 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.129e-05/0.4022, allocations: 19.09 kB / 0.7233 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.4022, allocations: 5.328 kB / 0.7233 GB, free: 20.47 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.396e-05/0.4022, allocations: 15.05 kB / 0.7234 GB, free: 20.46 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.355e-06/0.4022, allocations: 4.438 kB / 0.7234 GB, free: 20.46 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 4.638e-05/0.4023, allocations: 125.6 kB / 0.7235 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.156e-06/0.4023, allocations: 7.547 kB / 0.7235 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001623/0.4024, allocations: 100.2 kB / 0.7236 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.4024, allocations: 2.016 kB / 0.7236 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.4024, allocations: 4 kB / 0.7236 GB, free: 20.28 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.4024, allocations: 1.078 kB / 0.7236 GB, free: 20.28 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002268/0.4027, allocations: 305.8 kB / 0.7239 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.175e-06/0.4027, allocations: 0 / 0.7239 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.13e-05/0.4027, allocations: 9.844 kB / 0.7239 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.4027, allocations: 0 / 0.7239 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.4027, allocations: 5.031 kB / 0.7239 GB, free: 20.01 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.4027, allocations: 2.25 kB / 0.7239 GB, free: 20.01 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4027, allocations: 4 kB / 0.7239 GB, free: 20.01 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001329/0.4028, allocations: 196.3 kB / 0.7241 GB, free: 19.86 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.803e-06/0.4029, allocations: 6.266 kB / 0.7241 GB, free: 19.85 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.169e-05/0.4029, allocations: 2.094 kB / 0.7241 GB, free: 19.85 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.831e-05/0.4029, allocations: 7.875 kB / 0.7241 GB, free: 19.85 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.4029, allocations: 4.469 kB / 0.7241 GB, free: 19.85 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.403, allocations: 3.344 kB / 0.7241 GB, free: 19.85 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 1.726e-05/0.403, allocations: 86.62 kB / 0.7242 GB, free: 19.77 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.403, allocations: 0.9688 kB / 0.7242 GB, free: 19.77 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001615/0.4031, allocations: 13.84 kB / 0.7242 GB, free: 19.77 MB / 0.6355 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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 9.153e-05/0.4032, allocations: 103.8 kB / 0.7243 GB, free: 19.68 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001574/0.4034, allocations: 65.23 kB / 0.7244 GB, free: 19.66 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.4034, allocations: 0 / 0.7244 GB, free: 19.66 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.803e-05/0.4034, allocations: 32 kB / 0.7244 GB, free: 19.65 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001941/0.4036, allocations: 10.75 kB / 0.7244 GB, free: 19.65 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002467/0.4039, allocations: 164.1 kB / 0.7246 GB, free: 19.49 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.557e-05/0.4039, allocations: 69.02 kB / 0.7246 GB, free: 19.42 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.329e-05/0.4039, allocations: 12.55 kB / 0.7247 GB, free: 19.41 MB / 0.6355 GB Notification: Performance of SimCode: time 5.31e-07/0.4039, allocations: 0 / 0.7247 GB, free: 19.41 MB / 0.6355 GB Notification: Performance of Templates: time 0.001966/0.4059, allocations: 0.8831 MB / 0.7255 GB, free: 19.35 MB / 0.6355 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.2470729819033295] Failed to read output from testmodel.py, exit status != 0: 0.4115680588874966 0.41943299300000003 0.017933555 Calling exit ...