Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.0007005/0.0007005, allocations: 80.45 kB / 19.15 MB, free: 0.7734 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.0007425/0.0007425, allocations: 162 kB / 22.43 MB, free: 2.141 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.9013/0.9013, allocations: 177.2 MB / 202.8 MB, free: 5.77 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.7299/0.7299, allocations: 155 MB / 414.2 MB, free: 488 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: "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",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.0009085/0.0009085, allocations: 69.28 kB / 0.6186 GB, free: 13.29 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.4384/0.4393, allocations: 102 MB / 0.7182 GB, free: 23.18 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001477/0.4407, allocations: 0.7296 MB / 0.7189 GB, free: 22.72 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001464/0.4422, allocations: 1.183 MB / 0.7201 GB, free: 21.87 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.557e-05/0.4423, allocations: 0 / 0.7201 GB, free: 21.87 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 3.385e-05/0.4423, allocations: 5.344 kB / 0.7201 GB, free: 21.87 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 7.884e-05/0.4424, allocations: 20 kB / 0.7201 GB, free: 21.85 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004312/0.4428, allocations: 139.8 kB / 0.7203 GB, free: 21.78 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0001588/0.443, allocations: 129.4 kB / 0.7204 GB, free: 21.72 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.4431, allocations: 16.8 kB / 0.7204 GB, free: 21.71 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.4432, allocations: 71.69 kB / 0.7205 GB, free: 21.68 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 9.963e-05/0.4433, allocations: 46.08 kB / 0.7205 GB, free: 21.66 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 2.438e-05/0.4433, allocations: 15.03 kB / 0.7205 GB, free: 21.66 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 6.81e-05/0.4434, allocations: 27.05 kB / 0.7205 GB, free: 21.65 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 2.74e-05/0.4434, allocations: 13.38 kB / 0.7206 GB, free: 21.64 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 5.931e-05/0.4435, allocations: 44.05 kB / 0.7206 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0002187/0.4437, allocations: 156 kB / 0.7207 GB, free: 21.55 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.4437, allocations: 2.047 kB / 0.7207 GB, free: 21.55 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.325e-06/0.4437, allocations: 4 kB / 0.7208 GB, free: 21.55 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.845e-06/0.4437, allocations: 0 / 0.7208 GB, free: 21.55 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005409/0.4443, allocations: 344.2 kB / 0.7211 GB, free: 21.23 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.4443, allocations: 12.55 kB / 0.7211 GB, free: 21.23 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.71e-05/0.4443, allocations: 32.95 kB / 0.7211 GB, free: 21.19 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.4444, allocations: 17 kB / 0.7211 GB, free: 21.18 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.346e-05/0.4445, allocations: 115.2 kB / 0.7213 GB, free: 21.05 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.4445, allocations: 6.047 kB / 0.7213 GB, free: 21.05 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.4446, allocations: 11.03 kB / 0.7213 GB, free: 21.05 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001773/0.4447, allocations: 81.08 kB / 0.7213 GB, free: 21 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.4447, allocations: 0 / 0.7213 GB, free: 21 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.4448, allocations: 2.031 kB / 0.7213 GB, free: 21 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.4448, allocations: 1.188 kB / 0.7213 GB, free: 21 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.4449, allocations: 49.64 kB / 0.7214 GB, free: 20.98 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004543/0.4453, allocations: 287.3 kB / 0.7217 GB, free: 20.72 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001529/0.4455, allocations: 62.34 kB / 0.7217 GB, free: 20.68 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.229e-05/0.4456, allocations: 36.48 kB / 0.7218 GB, free: 20.66 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.4456, allocations: 1.75 kB / 0.7218 GB, free: 20.66 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002229/0.4458, allocations: 87.45 kB / 0.7218 GB, free: 20.61 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.4458, allocations: 1.031 kB / 0.7218 GB, free: 20.61 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8): time 0.0003294/0.4461, allocations: 151.3 kB / 0.722 GB, free: 20.54 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/0.4462, allocations: 61.41 kB / 0.7221 GB, free: 20.47 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.774e-05/0.4462, allocations: 126 kB / 0.7222 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.4462, allocations: 36.3 kB / 0.7222 GB, free: 20.32 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.902e-05/0.4463, allocations: 99.27 kB / 0.7223 GB, free: 20.23 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.4463, allocations: 15.52 kB / 0.7223 GB, free: 20.22 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.136e-05/0.4464, allocations: 39.12 kB / 0.7224 GB, free: 20.2 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.708e-05/0.4464, allocations: 320.2 kB / 0.7227 GB, free: 19.88 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.4465, allocations: 80.92 kB / 0.7227 GB, free: 19.83 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001139/0.4466, allocations: 122.7 kB / 0.7229 GB, free: 19.73 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001641/0.4468, allocations: 152.6 kB / 0.723 GB, free: 19.62 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.4468, allocations: 0.9375 kB / 0.723 GB, free: 19.62 MB / 0.6355 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002976/0.4471, allocations: 248.8 kB / 0.7232 GB, free: 19.47 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.4471, allocations: 37.77 kB / 0.7233 GB, free: 19.44 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.4471, allocations: 1.062 kB / 0.7233 GB, free: 19.44 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.4471, allocations: 6.219 kB / 0.7233 GB, free: 19.44 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.388e-05/0.4472, allocations: 18.72 kB / 0.7233 GB, free: 19.43 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.4472, allocations: 2.219 kB / 0.7233 GB, free: 19.43 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.4474, allocations: 38.23 kB / 0.7233 GB, free: 19.43 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.4474, allocations: 17.08 kB / 0.7234 GB, free: 19.42 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.099e-05/0.4474, allocations: 127.1 kB / 0.7235 GB, free: 19.3 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.335e-05/0.4475, allocations: 8.266 kB / 0.7235 GB, free: 19.29 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.4477, allocations: 127.3 kB / 0.7236 GB, free: 19.23 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.4477, allocations: 1.641 kB / 0.7236 GB, free: 19.23 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.4477, allocations: 0 / 0.7236 GB, free: 19.23 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.4477, allocations: 1.984 kB / 0.7236 GB, free: 19.23 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000348/0.4481, allocations: 350.4 kB / 0.7239 GB, free: 18.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.4481, allocations: 1.719 kB / 0.7239 GB, free: 18.93 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.094e-05/0.4481, allocations: 9.047 kB / 0.724 GB, free: 18.93 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.4481, allocations: 1.062 kB / 0.724 GB, free: 18.93 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.4481, allocations: 14.17 kB / 0.724 GB, free: 18.91 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4481, allocations: 5 kB / 0.724 GB, free: 18.91 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4481, allocations: 0 / 0.724 GB, free: 18.91 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002048/0.4483, allocations: 211.1 kB / 0.7242 GB, free: 18.76 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 1.2e-05/0.4484, allocations: 7.531 kB / 0.7242 GB, free: 18.75 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.4484, allocations: 5.844 kB / 0.7242 GB, free: 18.75 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.113e-05/0.4484, allocations: 10.66 kB / 0.7242 GB, free: 18.75 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.433e-05/0.4485, allocations: 13.64 kB / 0.7242 GB, free: 18.74 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.4485, allocations: 3.688 kB / 0.7242 GB, free: 18.74 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.718e-05/0.4485, allocations: 91.02 kB / 0.7243 GB, free: 18.66 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4485, allocations: 0 / 0.7243 GB, free: 18.66 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000205/0.4487, allocations: 22.06 kB / 0.7243 GB, free: 18.66 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003911/0.4491, allocations: 0.7572 MB / 0.7251 GB, free: 17.97 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002742/0.4494, allocations: 193.1 kB / 0.7252 GB, free: 17.84 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4494, allocations: 0 / 0.7252 GB, free: 17.84 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.297e-05/0.4495, allocations: 36.27 kB / 0.7253 GB, free: 17.84 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000242/0.4497, allocations: 21.67 kB / 0.7253 GB, free: 17.82 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.4515, allocations: 1.833 MB / 0.7271 GB, free: 16.25 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.554e-05/0.4515, allocations: 78.17 kB / 0.7272 GB, free: 16.17 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.603e-05/0.4516, allocations: 8.906 kB / 0.7272 GB, free: 16.17 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.277e-05/0.4516, allocations: 22.14 kB / 0.7272 GB, free: 16.15 MB / 0.6355 GB Notification: Performance of SimCode: time 1.332e-06/0.4516, allocations: 0 / 0.7272 GB, free: 16.15 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0213/0.4729, allocations: 3.345 MB / 0.7305 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.584/7.057, allocations: 17.09 kB / 0.7305 GB, free: 15.14 MB / 0.6355 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.747130762785673] Failed to read output from testmodel.py, exit status != 0: 7.13976288610138 7.148725732 6.703226337 Calling exit ...