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.0007031/0.0007031, allocations: 109.9 kB / 18.93 MB, free: 1.27 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.0008034/0.0008034, allocations: 221.7 kB / 22.26 MB, free: 3.688 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.9816/0.9816, allocations: 230.6 MB / 256 MB, free: 9.793 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.8483/0.8483, allocations: 203.8 MB / 0.5042 GB, free: 10.72 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.0009442/0.0009442, allocations: 62.77 kB / 0.7182 GB, free: 4.387 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5278/0.5287, allocations: 102 MB / 0.8178 GB, free: 1.266 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001503/0.5302, allocations: 0.6752 MB / 0.8185 GB, free: 0.8398 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000964/0.5312, allocations: 1.104 MB / 0.8196 GB, free: 32 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.777e-05/0.5312, allocations: 4 kB / 0.8196 GB, free: 28 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.475e-05/0.5313, allocations: 6.281 kB / 0.8196 GB, free: 24 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.023e-05/0.5313, allocations: 4.594 kB / 0.8196 GB, free: 20 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/0.5316, allocations: 47.41 kB / 0.8196 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.016e-05/0.5317, allocations: 49.94 kB / 0.8197 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.766e-05/0.5318, allocations: 9.031 kB / 0.8197 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.523e-05/0.5319, allocations: 17.97 kB / 0.8197 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.046e-05/0.5319, allocations: 25.86 kB / 0.8197 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.5319, allocations: 2.969 kB / 0.8197 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.573e-05/0.532, allocations: 25.77 kB / 0.8198 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.062e-05/0.532, allocations: 17.72 kB / 0.8198 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.009e-05/0.532, allocations: 17.7 kB / 0.8198 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001321/0.5322, allocations: 62.03 kB / 0.8199 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.5322, allocations: 1.094 kB / 0.8199 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.803e-06/0.5322, allocations: 0 / 0.8199 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.142e-06/0.5322, allocations: 0 / 0.8199 GB, free: 15.89 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.0004371/0.5326, allocations: 295.8 kB / 0.8201 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.5327, allocations: 13.88 kB / 0.8202 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.914e-05/0.5327, allocations: 37.23 kB / 0.8202 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.067e-05/0.5328, allocations: 6.922 kB / 0.8202 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.605e-05/0.5328, allocations: 111.7 kB / 0.8203 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.5328, allocations: 2.344 kB / 0.8203 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.5328, allocations: 3.141 kB / 0.8203 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.533, allocations: 66.53 kB / 0.8204 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.533, allocations: 5.094 kB / 0.8204 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.533, allocations: 0 / 0.8204 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.533, allocations: 5.844 kB / 0.8204 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.652e-05/0.5331, allocations: 46.73 kB / 0.8204 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003661/0.5335, allocations: 248.7 kB / 0.8207 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001055/0.5336, allocations: 51.56 kB / 0.8207 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.508e-05/0.5336, allocations: 35.5 kB / 0.8207 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.5337, allocations: 0.7969 kB / 0.8207 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00014/0.5338, allocations: 73.47 kB / 0.8208 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.012e-06/0.5338, allocations: 0 / 0.8208 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0002831/0.5341, allocations: 120.3 kB / 0.8209 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.5341, allocations: 55.92 kB / 0.821 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.951e-05/0.5342, allocations: 104.6 kB / 0.8211 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.5342, allocations: 30.86 kB / 0.8211 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.528e-05/0.5343, allocations: 85.88 kB / 0.8212 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.5343, allocations: 16.95 kB / 0.8212 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/0.5343, allocations: 20.5 kB / 0.8212 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.204e-05/0.5344, allocations: 322.9 kB / 0.8215 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.116e-05/0.5345, allocations: 26.14 kB / 0.8216 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.491e-05/0.5345, allocations: 57.55 kB / 0.8216 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000124/0.5347, allocations: 75.14 kB / 0.8217 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5347, allocations: 0.5 kB / 0.8217 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001651/0.5348, allocations: 106.5 kB / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.5348, allocations: 7.312 kB / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.5349, allocations: 0.8438 kB / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.5349, allocations: 2.5 kB / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.605e-05/0.5349, allocations: 21.06 kB / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.5349, allocations: 1.469 kB / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.709e-05/0.535, allocations: 10.78 kB / 0.8218 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.535, allocations: 3.547 kB / 0.8218 GB, free: 14.15 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 7.635e-05/0.5351, allocations: 121.8 kB / 0.822 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.798e-06/0.5351, allocations: 7.953 kB / 0.822 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001939/0.5353, allocations: 103 kB / 0.8221 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.5353, allocations: 5.797 kB / 0.8221 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.5353, allocations: 0 / 0.8221 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.5353, allocations: 2.031 kB / 0.8221 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002845/0.5356, allocations: 331.7 kB / 0.8224 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.5356, allocations: 0 / 0.8224 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.026e-05/0.5356, allocations: 7.859 kB / 0.8224 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.5356, allocations: 2.594 kB / 0.8224 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.5356, allocations: 4.609 kB / 0.8224 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.5356, allocations: 3.938 kB / 0.8224 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.5356, allocations: 0 / 0.8224 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001572/0.5358, allocations: 197.8 kB / 0.8226 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.983e-06/0.5358, allocations: 4.703 kB / 0.8226 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.083e-05/0.5358, allocations: 2.938 kB / 0.8226 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.842e-05/0.5358, allocations: 10.69 kB / 0.8226 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.5359, allocations: 15.45 kB / 0.8226 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.5359, allocations: 0.75 kB / 0.8226 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.991e-05/0.5359, allocations: 85.33 kB / 0.8227 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.5359, allocations: 0 / 0.8227 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001643/0.5361, allocations: 15.3 kB / 0.8227 GB, free: 13.41 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.0003687/0.5364, allocations: 0.7296 MB / 0.8234 GB, free: 12.72 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001507/0.5366, allocations: 61.34 kB / 0.8235 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.5366, allocations: 0 / 0.8235 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 5.521e-05/0.5367, allocations: 34.06 kB / 0.8235 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001805/0.5368, allocations: 17.48 kB / 0.8235 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.5379, allocations: 1.379 MB / 0.8249 GB, free: 11.41 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.5381, allocations: 0.6834 MB / 0.8256 GB, free: 10.71 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.049e-05/0.5381, allocations: 4.766 kB / 0.8256 GB, free: 10.71 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.5382, allocations: 15.36 kB / 0.8256 GB, free: 10.71 MB / 0.6198 GB Notification: Performance of SimCode: time 5.61e-07/0.5382, allocations: 0 / 0.8256 GB, free: 10.71 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01526/0.5534, allocations: 1.885 MB / 0.8274 GB, free: 10.26 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.479/7.033, allocations: 3.688 kB / 0.8274 GB, free: 10.26 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.203398067038506] Failed to read output from testmodel.py, exit status != 0: 7.109901602147147 7.122260338 6.587779089 Calling exit ...