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.0009172/0.0009172, allocations: 93.06 kB / 19.65 MB, free: 280 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.001008/0.001008, allocations: 169.3 kB / 23.02 MB, free: 1.551 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 1.02/1.02, allocations: 177.1 MB / 203.4 MB, free: 5.637 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-535:34: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-535:42: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.7988/0.7988, allocations: 154.8 MB / 414.7 MB, free: 0.4961 MB / 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: Performance of FrontEnd - loaded program: time 2.375e-06/2.375e-06, allocations: 0.6562 kB / 0.5205 GB, free: 1.992 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.691e-05/2.929e-05, allocations: 6.312 kB / 0.5205 GB, free: 1.984 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001792/0.001822, allocations: 0.6637 MB / 0.5212 GB, free: 1.348 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.003283, allocations: 1.119 MB / 0.5223 GB, free: 220 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.8e-05/0.003331, allocations: 1.812 kB / 0.5223 GB, free: 220 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 3.176e-05/0.003363, allocations: 0 / 0.5223 GB, free: 220 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 8.175e-05/0.003445, allocations: 11.86 kB / 0.5223 GB, free: 208 kB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.003769, allocations: 43.77 kB / 0.5223 GB, free: 164 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 9.5e-05/0.003864, allocations: 49.58 kB / 0.5224 GB, free: 116 kB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.003973, allocations: 15.97 kB / 0.5224 GB, free: 100 kB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.914e-05/0.004062, allocations: 19.98 kB / 0.5224 GB, free: 80 kB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.891e-05/0.004121, allocations: 23.91 kB / 0.5224 GB, free: 56 kB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.004141, allocations: 4 kB / 0.5224 GB, free: 52 kB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.313e-05/0.004214, allocations: 20.73 kB / 0.5225 GB, free: 32 kB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 2.602e-05/0.00424, allocations: 11.98 kB / 0.5225 GB, free: 20 kB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 3.572e-05/0.004276, allocations: 17.33 kB / 0.5225 GB, free: 4 kB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001834/0.00446, allocations: 47.88 kB / 0.5225 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.004463, allocations: 0 / 0.5225 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.412e-06/0.004464, allocations: 0 / 0.5225 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.004469, allocations: 1.344 kB / 0.5225 GB, free: 15.96 MB / 0.4948 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.0005603/0.005029, allocations: 398 kB / 0.5229 GB, free: 15.53 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.005074, allocations: 8.031 kB / 0.5229 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.005199, allocations: 8.891 kB / 0.5229 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.005321, allocations: 112.6 kB / 0.523 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.005338, allocations: 8.375 kB / 0.523 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.005352, allocations: 2.688 kB / 0.5231 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001634/0.005515, allocations: 66.92 kB / 0.5231 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.005527, allocations: 192 / 0.5231 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.005542, allocations: 4.375 kB / 0.5231 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.005552, allocations: 4.359 kB / 0.5231 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.506e-05/0.005597, allocations: 11.88 kB / 0.5231 GB, free: 15.28 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004294/0.006027, allocations: 268.3 kB / 0.5234 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.006139, allocations: 44.48 kB / 0.5234 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.188e-05/0.006171, allocations: 15.69 kB / 0.5234 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.006198, allocations: 4.656 kB / 0.5235 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001071/0.006305, allocations: 68.92 kB / 0.5235 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.006307, allocations: 1.469 kB / 0.5235 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=6): time 0.0002188/0.006526, allocations: 69.69 kB / 0.5236 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.006573, allocations: 55.39 kB / 0.5236 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.006679, allocations: 162.9 kB / 0.5238 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.006697, allocations: 25.7 kB / 0.5238 GB, free: 14.47 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.227e-05/0.006759, allocations: 138.8 kB / 0.524 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.006779, allocations: 13.44 kB / 0.524 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.886e-05/0.006828, allocations: 27.38 kB / 0.524 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.006986, allocations: 0.4884 MB / 0.5245 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.949e-05/0.007015, allocations: 4.5 kB / 0.5245 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.273e-05/0.007068, allocations: 55.77 kB / 0.5245 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.267e-05/0.007151, allocations: 55.42 kB / 0.5246 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.007153, allocations: 5.219 kB / 0.5246 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001497/0.007303, allocations: 77.66 kB / 0.5247 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.007321, allocations: 8.562 kB / 0.5247 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.007329, allocations: 4 kB / 0.5247 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.007349, allocations: 0.9688 kB / 0.5247 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.442e-05/0.007443, allocations: 15.98 kB / 0.5247 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.007451, allocations: 3.25 kB / 0.5247 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.654e-05/0.007487, allocations: 7.938 kB / 0.5247 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.007498, allocations: 11.88 kB / 0.5247 GB, free: 13.51 MB / 0.4948 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 9.984e-05/0.007598, allocations: 164.6 kB / 0.5249 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.916e-05/0.007617, allocations: 11.89 kB / 0.5249 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001572/0.007775, allocations: 66.11 kB / 0.5249 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.007777, allocations: 4 kB / 0.5249 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.007782, allocations: 3.984 kB / 0.5249 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.007785, allocations: 3.031 kB / 0.5249 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003055/0.008091, allocations: 317.4 kB / 0.5253 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.008093, allocations: 0 / 0.5253 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.684e-05/0.00814, allocations: 4 kB / 0.5253 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.008144, allocations: 4 kB / 0.5253 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.008153, allocations: 0 / 0.5253 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.008155, allocations: 0 / 0.5253 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/0.008157, allocations: 3.984 kB / 0.5253 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001631/0.008321, allocations: 225.3 kB / 0.5255 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.086e-06/0.008329, allocations: 4 kB / 0.5255 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.008343, allocations: 0 / 0.5255 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.724e-05/0.00841, allocations: 8.172 kB / 0.5255 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.812e-05/0.008458, allocations: 4.5 kB / 0.5255 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.008476, allocations: 14.48 kB / 0.5255 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 4.87e-05/0.008525, allocations: 123.2 kB / 0.5256 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.008525, allocations: 0 / 0.5256 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002498/0.008775, allocations: 12 kB / 0.5256 GB, free: 12.48 MB / 0.4948 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 0.0001534/0.008928, allocations: 107.2 kB / 0.5257 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001255/0.009054, allocations: 38.05 kB / 0.5258 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.009055, allocations: 0 / 0.5258 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 4.241e-05/0.009098, allocations: 23.62 kB / 0.5258 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.009385, allocations: 18.11 kB / 0.5258 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005977/0.009983, allocations: 139.9 kB / 0.5259 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.538e-05/0.01004, allocations: 59.36 kB / 0.526 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.813e-05/0.01007, allocations: 5.016 kB / 0.526 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.0101, allocations: 16.5 kB / 0.526 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of SimCode: time 5.41e-07/0.0101, allocations: 0.9375 kB / 0.526 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of Templates: time 0.003357/0.01346, allocations: 0.8317 MB / 0.5268 GB, free: 11.24 MB / 0.4948 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=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.031953776720911]