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.0007228/0.0007228, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008281/0.0008281, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.023/1.023, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.7604/0.7604, allocations: 154.6 MB / 413.7 MB, free: 0.8242 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: "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.705e-06/2.705e-06, allocations: 0 / 0.618 GB, free: 13.74 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.403e-05, allocations: 2.281 kB / 0.618 GB, free: 13.74 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001558/0.001582, allocations: 0.6464 MB / 0.6187 GB, free: 13.1 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001262/0.002844, allocations: 1.092 MB / 0.6197 GB, free: 11.99 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.682e-05/0.002911, allocations: 3.938 kB / 0.6197 GB, free: 11.99 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.754e-05/0.002948, allocations: 3.938 kB / 0.6197 GB, free: 11.98 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 8.76e-05/0.003036, allocations: 7.922 kB / 0.6197 GB, free: 11.98 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003795/0.003415, allocations: 43.77 kB / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.003552, allocations: 47.86 kB / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.003688, allocations: 7.984 kB / 0.6198 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 9.502e-05/0.003783, allocations: 27.97 kB / 0.6199 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.794e-05/0.003841, allocations: 19.92 kB / 0.6199 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.003862, allocations: 7.938 kB / 0.6199 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.861e-05/0.003931, allocations: 19.98 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.478e-05/0.003956, allocations: 11.97 kB / 0.6199 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.949e-05/0.003985, allocations: 8 kB / 0.6199 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001357/0.004121, allocations: 71.77 kB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.004122, allocations: 0 / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of FrontEnd: time 7.82e-07/0.004123, allocations: 0 / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.004128, allocations: 0 / 0.62 GB, free: 11.71 MB / 0.5886 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.0004637/0.004592, allocations: 290.2 kB / 0.6203 GB, free: 11.4 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.004644, allocations: 13.47 kB / 0.6203 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.405e-05/0.004688, allocations: 34.75 kB / 0.6203 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.331e-05/0.004762, allocations: 8.891 kB / 0.6203 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.152e-05/0.004843, allocations: 109.7 kB / 0.6204 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.004855, allocations: 384 / 0.6204 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.004869, allocations: 8.375 kB / 0.6204 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/0.005033, allocations: 66.09 kB / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.005045, allocations: 4.188 kB / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.005058, allocations: 4.375 kB / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.005067, allocations: 8.125 kB / 0.6205 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.005215, allocations: 35.95 kB / 0.6206 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004635/0.005679, allocations: 240 kB / 0.6208 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.005805, allocations: 54.48 kB / 0.6208 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.891e-05/0.005864, allocations: 32.95 kB / 0.6209 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.005893, allocations: 3.938 kB / 0.6209 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001868/0.00608, allocations: 75.34 kB / 0.6209 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.904e-06/0.006082, allocations: 0 / 0.6209 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0003138/0.006396, allocations: 113.6 kB / 0.621 GB, free: 10.49 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.006446, allocations: 59.34 kB / 0.6211 GB, free: 10.42 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.343e-05/0.006529, allocations: 105.8 kB / 0.6212 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.006554, allocations: 33.7 kB / 0.6212 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.787e-05/0.006601, allocations: 88.08 kB / 0.6213 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.006627, allocations: 23.84 kB / 0.6213 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.698e-05/0.006674, allocations: 17.72 kB / 0.6214 GB, free: 10.13 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.006809, allocations: 318.8 kB / 0.6217 GB, free: 9.812 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.995e-05/0.006899, allocations: 27.92 kB / 0.6217 GB, free: 9.785 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.006999, allocations: 47.41 kB / 0.6217 GB, free: 9.727 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.00717, allocations: 83.33 kB / 0.6218 GB, free: 9.633 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.007173, allocations: 0 / 0.6218 GB, free: 9.633 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002215/0.007395, allocations: 106 kB / 0.6219 GB, free: 9.523 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.007412, allocations: 6.188 kB / 0.6219 GB, free: 9.52 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.007419, allocations: 4.047 kB / 0.6219 GB, free: 9.516 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.007435, allocations: 3.984 kB / 0.6219 GB, free: 9.512 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.6e-05/0.007531, allocations: 20.02 kB / 0.622 GB, free: 9.492 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.007539, allocations: 8 kB / 0.622 GB, free: 9.484 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.169e-05/0.00759, allocations: 8 kB / 0.622 GB, free: 9.477 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.007604, allocations: 7.984 kB / 0.622 GB, free: 9.469 MB / 0.5886 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 7.877e-05/0.007683, allocations: 114.8 kB / 0.6221 GB, free: 9.348 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.236e-05/0.007695, allocations: 7.891 kB / 0.6221 GB, free: 9.34 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002385/0.007934, allocations: 106 kB / 0.6222 GB, free: 9.227 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.007936, allocations: 4 kB / 0.6222 GB, free: 9.223 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.007941, allocations: 0 / 0.6222 GB, free: 9.223 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.007946, allocations: 7.938 kB / 0.6222 GB, free: 9.215 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003824/0.008328, allocations: 317.7 kB / 0.6225 GB, free: 8.855 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.00833, allocations: 0 / 0.6225 GB, free: 8.855 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.999e-05/0.00838, allocations: 11.98 kB / 0.6225 GB, free: 8.844 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.008383, allocations: 0 / 0.6225 GB, free: 8.844 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.008392, allocations: 3.938 kB / 0.6225 GB, free: 8.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.008394, allocations: 0 / 0.6225 GB, free: 8.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.008396, allocations: 4 kB / 0.6225 GB, free: 8.836 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002379/0.008634, allocations: 199.4 kB / 0.6227 GB, free: 8.625 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.156e-05/0.008645, allocations: 4 kB / 0.6227 GB, free: 8.621 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.008661, allocations: 0 / 0.6227 GB, free: 8.621 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.057e-05/0.008742, allocations: 7.984 kB / 0.6227 GB, free: 8.613 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.008786, allocations: 4 kB / 0.6227 GB, free: 8.609 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.008801, allocations: 4 kB / 0.6227 GB, free: 8.605 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 4.816e-05/0.008849, allocations: 87.45 kB / 0.6228 GB, free: 8.52 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9e-08/0.008849, allocations: 4 kB / 0.6228 GB, free: 8.516 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002789/0.009128, allocations: 19.94 kB / 0.6228 GB, free: 8.496 MB / 0.5886 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.0005865/0.009715, allocations: 0.7279 MB / 0.6236 GB, free: 7.742 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002066/0.009921, allocations: 63.88 kB / 0.6236 GB, free: 7.68 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.009923, allocations: 0 / 0.6236 GB, free: 7.68 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 8.528e-05/0.01001, allocations: 36.17 kB / 0.6236 GB, free: 7.645 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002002/0.01021, allocations: 11.92 kB / 0.6237 GB, free: 7.633 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.01177, allocations: 1.375 MB / 0.625 GB, free: 6.16 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.344e-05/0.01182, allocations: 71.33 kB / 0.6251 GB, free: 6.07 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.79e-05/0.01185, allocations: 4 kB / 0.6251 GB, free: 6.066 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.241e-05/0.01189, allocations: 16.5 kB / 0.6251 GB, free: 6.051 MB / 0.5886 GB Notification: Performance of SimCode: time 4.81e-07/0.01189, allocations: 0 / 0.6251 GB, free: 6.051 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.02941, allocations: 2.444 MB / 0.6275 GB, free: 3.758 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.906/6.936, allocations: 4.984 kB / 0.6275 GB, free: 3.754 MB / 0.5886 GB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.972036771476269] Failed to read output from testmodel.py, exit status != 0: 7.018574248068035 7.027914681 7.021942745 Calling exit ...