Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.001136/0.001136, 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.0007945/0.0007945, 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 0.9025/0.9025, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7363/0.7363, allocations: 154.6 MB / 413.8 MB, free: 0.7969 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/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_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.556e-06/3.556e-06, allocations: 0 / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.125e-05/2.481e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001312/0.001337, allocations: 0.6497 MB / 0.6187 GB, free: 13.04 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001159/0.002496, allocations: 1.092 MB / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.226e-05/0.002558, allocations: 0 / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.586e-05/0.002594, allocations: 0 / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 8.919e-05/0.002683, allocations: 15.88 kB / 0.6198 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004226/0.003106, allocations: 47.77 kB / 0.6198 GB, free: 11.87 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.00324, allocations: 43.84 kB / 0.6199 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.003384, allocations: 8 kB / 0.6199 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.003504, allocations: 35.89 kB / 0.6199 GB, free: 11.78 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 6.772e-05/0.003572, allocations: 11.98 kB / 0.6199 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.003593, allocations: 4 kB / 0.6199 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 8.587e-05/0.003679, allocations: 15.98 kB / 0.6199 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 3.011e-05/0.003709, allocations: 11.98 kB / 0.62 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.78e-05/0.003756, allocations: 15.92 kB / 0.62 GB, free: 11.72 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.003932, allocations: 71.77 kB / 0.62 GB, free: 11.65 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.003936, allocations: 0 / 0.62 GB, free: 11.65 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.894e-06/0.003938, allocations: 0 / 0.62 GB, free: 11.65 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.003944, allocations: 4 kB / 0.62 GB, free: 11.65 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.0005182/0.004462, allocations: 286.2 kB / 0.6203 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.004509, allocations: 8.031 kB / 0.6203 GB, free: 11.33 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.398e-05/0.004543, allocations: 34.75 kB / 0.6204 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.94e-05/0.004622, allocations: 12.88 kB / 0.6204 GB, free: 11.27 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.33e-05/0.004706, allocations: 121.7 kB / 0.6205 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.004717, allocations: 4.375 kB / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.004728, allocations: 384 / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.004885, allocations: 70.2 kB / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.004893, allocations: 192 / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.004903, allocations: 384 / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.004909, allocations: 4.125 kB / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.823e-05/0.005007, allocations: 43.95 kB / 0.6206 GB, free: 11 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003567/0.005363, allocations: 235.9 kB / 0.6208 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000109/0.005472, allocations: 54.55 kB / 0.6209 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.98e-05/0.005522, allocations: 24.97 kB / 0.6209 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.005543, allocations: 7.922 kB / 0.6209 GB, free: 10.63 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001697/0.005713, allocations: 79.33 kB / 0.621 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.005714, allocations: 0 / 0.621 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002643/0.005978, allocations: 125.6 kB / 0.6211 GB, free: 10.41 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.006016, allocations: 51.41 kB / 0.6212 GB, free: 10.35 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.01e-05/0.006076, allocations: 105.8 kB / 0.6213 GB, free: 10.24 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.006087, allocations: 29.64 kB / 0.6213 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.844e-05/0.006126, allocations: 92.09 kB / 0.6214 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/0.006142, allocations: 15.84 kB / 0.6214 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.331e-05/0.006175, allocations: 25.7 kB / 0.6214 GB, free: 10.06 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.225e-05/0.006258, allocations: 314.8 kB / 0.6217 GB, free: 9.746 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.481e-05/0.006312, allocations: 27.97 kB / 0.6217 GB, free: 9.719 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.908e-05/0.006371, allocations: 51.41 kB / 0.6218 GB, free: 9.656 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001097/0.006481, allocations: 79.34 kB / 0.6219 GB, free: 9.566 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.006483, allocations: 3.938 kB / 0.6219 GB, free: 9.562 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001446/0.006628, allocations: 113.5 kB / 0.622 GB, free: 9.445 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.006643, allocations: 4 kB / 0.622 GB, free: 9.441 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.006649, allocations: 0 / 0.622 GB, free: 9.441 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.006663, allocations: 4 kB / 0.622 GB, free: 9.438 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.327e-05/0.006736, allocations: 11.98 kB / 0.622 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.006742, allocations: 0.5 kB / 0.622 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.557e-05/0.006778, allocations: 11.98 kB / 0.622 GB, free: 9.414 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.565e-06/0.006785, allocations: 0 / 0.622 GB, free: 9.414 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.612e-05/0.006862, allocations: 117.8 kB / 0.6221 GB, free: 9.293 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-06/0.006871, allocations: 15.92 kB / 0.6221 GB, free: 9.277 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001793/0.00705, allocations: 110.1 kB / 0.6222 GB, free: 9.16 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.007055, allocations: 3.984 kB / 0.6222 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.007061, allocations: 0 / 0.6222 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.007065, allocations: 0 / 0.6222 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.007353, allocations: 321.5 kB / 0.6226 GB, free: 8.793 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.007355, allocations: 0 / 0.6226 GB, free: 8.793 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.069e-05/0.007386, allocations: 11.98 kB / 0.6226 GB, free: 8.781 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.007389, allocations: 4 kB / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.007397, allocations: 0 / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.007399, allocations: 0 / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.007401, allocations: 0 / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001521/0.007553, allocations: 199.4 kB / 0.6228 GB, free: 8.566 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.893e-06/0.00756, allocations: 0 / 0.6228 GB, free: 8.566 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.007572, allocations: 4 kB / 0.6228 GB, free: 8.562 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.65e-05/0.007618, allocations: 11.98 kB / 0.6228 GB, free: 8.551 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.307e-05/0.007651, allocations: 11.92 kB / 0.6228 GB, free: 8.539 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.007665, allocations: 4 kB / 0.6228 GB, free: 8.535 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.97e-05/0.007695, allocations: 83.28 kB / 0.6229 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.007695, allocations: 0 / 0.6229 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000162/0.007857, allocations: 19.92 kB / 0.6229 GB, free: 8.434 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.0003762/0.008233, allocations: 0.7322 MB / 0.6236 GB, free: 7.676 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001553/0.008388, allocations: 67.89 kB / 0.6237 GB, free: 7.609 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.00839, allocations: 0 / 0.6237 GB, free: 7.609 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.487e-05/0.008445, allocations: 31.91 kB / 0.6237 GB, free: 7.578 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.008648, allocations: 13.81 kB / 0.6237 GB, free: 7.566 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.00989, allocations: 1.375 MB / 0.6251 GB, free: 6.09 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.296e-05/0.009933, allocations: 63.34 kB / 0.6251 GB, free: 6.008 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.969e-05/0.009962, allocations: 7.984 kB / 0.6251 GB, free: 6 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.921e-05/0.01, allocations: 20.64 kB / 0.6251 GB, free: 5.98 MB / 0.5886 GB Notification: Performance of SimCode: time 9.42e-07/0.01, allocations: 0 / 0.6251 GB, free: 5.98 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01763/0.02763, allocations: 2.445 MB / 0.6275 GB, free: 3.695 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.045/7.072, allocations: 3.984 kB / 0.6275 GB, free: 3.691 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.87832879461348] Failed to read output from testmodel.py, exit status != 0: 7.156217148527503 7.167577313 7.160913776 Calling exit ...