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.0008857/0.0008857, allocations: 105.5 kB / 18.95 MB, free: 1.184 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.0009385/0.0009385, allocations: 212.1 kB / 22.25 MB, free: 3.727 MB / 13.93 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.9771/0.9771, allocations: 230.6 MB / 256 MB, free: 9.594 MB / 202.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.7985/0.7985, allocations: 203.8 MB / 0.5042 GB, free: 10.45 MB / 410.7 MB " [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: 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.0009852/0.0009852, allocations: 67.33 kB / 0.7181 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5536/0.5546, allocations: 102 MB / 0.8178 GB, free: 1.035 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001639/0.5562, allocations: 0.6474 MB / 0.8184 GB, free: 0.6328 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001493/0.5577, allocations: 1.087 MB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.786e-05/0.5578, allocations: 2.688 kB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 4.48e-05/0.5578, allocations: 3.938 kB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.337e-05/0.5579, allocations: 13.28 kB / 0.8195 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004163/0.5583, allocations: 43.33 kB / 0.8195 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.5585, allocations: 48.95 kB / 0.8196 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.5586, allocations: 8.969 kB / 0.8196 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.382e-05/0.5587, allocations: 20.36 kB / 0.8196 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.136e-05/0.5588, allocations: 21.95 kB / 0.8196 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.5588, allocations: 5.094 kB / 0.8196 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.335e-05/0.5589, allocations: 19.64 kB / 0.8197 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.608e-05/0.5589, allocations: 9.203 kB / 0.8197 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.647e-05/0.5589, allocations: 13.97 kB / 0.8197 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002162/0.5592, allocations: 72.61 kB / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.5592, allocations: 0.5625 kB / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.495e-06/0.5592, allocations: 0 / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.587e-06/0.5592, allocations: 0 / 0.8197 GB, free: 15.71 MB / 0.6198 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.0004995/0.5597, allocations: 295.4 kB / 0.82 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.5597, allocations: 10.06 kB / 0.82 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.464e-05/0.5598, allocations: 32.78 kB / 0.8201 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.611e-05/0.5598, allocations: 9.406 kB / 0.8201 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.238e-05/0.5599, allocations: 114.8 kB / 0.8202 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.5599, allocations: 10.45 kB / 0.8202 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.879e-06/0.5599, allocations: 2.781 kB / 0.8202 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001644/0.5601, allocations: 62.73 kB / 0.8203 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.5601, allocations: 4.734 kB / 0.8203 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.5601, allocations: 0 / 0.8203 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.5601, allocations: 1.781 kB / 0.8203 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.5602, allocations: 43.36 kB / 0.8203 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004437/0.5607, allocations: 239.8 kB / 0.8205 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001342/0.5608, allocations: 53.38 kB / 0.8206 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.94e-05/0.5609, allocations: 29.47 kB / 0.8206 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.5609, allocations: 4.188 kB / 0.8206 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001908/0.5611, allocations: 73.75 kB / 0.8207 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.423e-06/0.5611, allocations: 2.812 kB / 0.8207 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0003105/0.5614, allocations: 120.9 kB / 0.8208 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.5615, allocations: 60.5 kB / 0.8209 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.608e-05/0.5615, allocations: 107.1 kB / 0.821 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.5615, allocations: 25.7 kB / 0.821 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.613e-05/0.5616, allocations: 85.48 kB / 0.8211 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.5616, allocations: 15.84 kB / 0.8211 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.29e-05/0.5616, allocations: 22.94 kB / 0.8211 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.926e-05/0.5617, allocations: 323.7 kB / 0.8214 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.848e-05/0.5618, allocations: 30.44 kB / 0.8214 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.761e-05/0.5618, allocations: 50.34 kB / 0.8215 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/0.562, allocations: 85.86 kB / 0.8216 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.562, allocations: 3.25 kB / 0.8216 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001677/0.5621, allocations: 108.1 kB / 0.8217 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.5621, allocations: 6.219 kB / 0.8217 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.5621, allocations: 0.6562 kB / 0.8217 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.5622, allocations: 2.906 kB / 0.8217 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.675e-05/0.5622, allocations: 11.89 kB / 0.8217 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.5622, allocations: 8.812 kB / 0.8217 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.21e-05/0.5623, allocations: 6.359 kB / 0.8217 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.934e-06/0.5623, allocations: 4.281 kB / 0.8217 GB, free: 13.98 MB / 0.6198 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 6.896e-05/0.5624, allocations: 125.8 kB / 0.8218 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.143e-06/0.5624, allocations: 3.953 kB / 0.8218 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002003/0.5626, allocations: 104.9 kB / 0.8219 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.5626, allocations: 2.562 kB / 0.8219 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.5626, allocations: 3 kB / 0.8219 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.5626, allocations: 0 / 0.8219 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004643/0.563, allocations: 321.8 kB / 0.8223 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.563, allocations: 4 kB / 0.8223 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.648e-05/0.5631, allocations: 9.016 kB / 0.8223 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.5631, allocations: 0 / 0.8223 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.5631, allocations: 2.766 kB / 0.8223 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.5631, allocations: 0 / 0.8223 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5631, allocations: 0 / 0.8223 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001701/0.5633, allocations: 197.3 kB / 0.8225 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.799e-06/0.5633, allocations: 5.922 kB / 0.8225 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.5633, allocations: 8.188 kB / 0.8225 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.185e-05/0.5633, allocations: 12.59 kB / 0.8225 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.799e-05/0.5634, allocations: 10.03 kB / 0.8225 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.5634, allocations: 3.516 kB / 0.8225 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.312e-05/0.5634, allocations: 86.95 kB / 0.8226 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5634, allocations: 0 / 0.8226 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001645/0.5636, allocations: 8.344 kB / 0.8226 GB, free: 13.24 MB / 0.6198 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.0004298/0.564, allocations: 0.7364 MB / 0.8233 GB, free: 12.56 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001712/0.5642, allocations: 63.89 kB / 0.8234 GB, free: 12.54 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.5642, allocations: 0 / 0.8234 GB, free: 12.54 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.113e-05/0.5643, allocations: 25.8 kB / 0.8234 GB, free: 12.54 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.5645, allocations: 18.91 kB / 0.8234 GB, free: 12.53 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.5656, allocations: 1.384 MB / 0.8248 GB, free: 11.25 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.38e-05/0.5656, allocations: 67.31 kB / 0.8248 GB, free: 11.18 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.065e-05/0.5657, allocations: 6.812 kB / 0.8248 GB, free: 11.18 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.6e-05/0.5657, allocations: 14.03 kB / 0.8248 GB, free: 11.17 MB / 0.6198 GB Notification: Performance of SimCode: time 6.52e-07/0.5657, allocations: 0 / 0.8248 GB, free: 11.17 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01769/0.5834, allocations: 2.301 MB / 0.8271 GB, free: 10.3 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.667/7.25, allocations: 12.12 kB / 0.8271 GB, free: 10.29 MB / 0.6198 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: 10.368098699953407] Failed to read output from testmodel.py, exit status != 0: 7.330638953950256 7.3420463400000004 6.780762723 Calling exit ...