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.0007358/0.0007358, allocations: 105.5 kB / 18.95 MB, free: 1.188 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.0007629/0.0007629, allocations: 208.1 kB / 22.25 MB, free: 3.59 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.9461/0.9461, 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 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.813/0.813, allocations: 203.5 MB / 0.5039 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 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: 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.0009681/0.0009681, allocations: 70.02 kB / 0.7178 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5967/0.5976, allocations: 102 MB / 0.8174 GB, free: 1.227 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001568/0.5992, allocations: 0.6393 MB / 0.818 GB, free: 0.8359 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009482/0.6002, allocations: 1.09 MB / 0.8191 GB, free: 44 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.305e-05/0.6002, allocations: 1.094 kB / 0.8191 GB, free: 44 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.17e-05/0.6002, allocations: 4.547 kB / 0.8191 GB, free: 40 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.259e-05/0.6003, allocations: 12.14 kB / 0.8191 GB, free: 32 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003016/0.6006, allocations: 43.53 kB / 0.8191 GB, free: 8 kB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.6007, allocations: 47.58 kB / 0.8192 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.6008, allocations: 13.84 kB / 0.8192 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.326e-05/0.6009, allocations: 21.67 kB / 0.8192 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.132e-05/0.601, allocations: 22.73 kB / 0.8192 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.601, allocations: 5.844 kB / 0.8192 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.368e-05/0.601, allocations: 14.98 kB / 0.8192 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.543e-05/0.6011, allocations: 17.2 kB / 0.8193 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.671e-05/0.6011, allocations: 18.67 kB / 0.8193 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.6013, allocations: 60.62 kB / 0.8193 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.6013, allocations: 0 / 0.8193 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.374e-06/0.6013, allocations: 0 / 0.8193 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.6013, allocations: 0 / 0.8193 GB, free: 15.91 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.000513/0.6018, allocations: 295.2 kB / 0.8196 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.6018, allocations: 15.72 kB / 0.8196 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.293e-05/0.6019, allocations: 35.41 kB / 0.8197 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.629e-05/0.6019, allocations: 8.188 kB / 0.8197 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.706e-05/0.602, allocations: 113.5 kB / 0.8198 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.602, allocations: 2.75 kB / 0.8198 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.204e-05/0.602, allocations: 6.844 kB / 0.8198 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001547/0.6022, allocations: 64.12 kB / 0.8198 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.6022, allocations: 3.938 kB / 0.8198 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.6022, allocations: 4.656 kB / 0.8199 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.6022, allocations: 2.844 kB / 0.8199 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.6023, allocations: 39.34 kB / 0.8199 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003865/0.6027, allocations: 244.4 kB / 0.8201 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/0.6028, allocations: 50.05 kB / 0.8202 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.963e-05/0.6029, allocations: 32.09 kB / 0.8202 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.6029, allocations: 0.7969 kB / 0.8202 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001452/0.6031, allocations: 75.34 kB / 0.8203 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.133e-06/0.6031, allocations: 0.7812 kB / 0.8203 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0002942/0.6034, allocations: 123.3 kB / 0.8204 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.6034, allocations: 52.2 kB / 0.8204 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.078e-05/0.6035, allocations: 105.5 kB / 0.8205 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.6035, allocations: 30.45 kB / 0.8206 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.93e-05/0.6035, allocations: 88.98 kB / 0.8207 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.6035, allocations: 16.59 kB / 0.8207 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.271e-05/0.6036, allocations: 28.84 kB / 0.8207 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.715e-05/0.6037, allocations: 320.2 kB / 0.821 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.041e-05/0.6037, allocations: 22.97 kB / 0.821 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.917e-05/0.6038, allocations: 48 kB / 0.8211 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.6039, allocations: 85.11 kB / 0.8212 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.6039, allocations: 1.031 kB / 0.8212 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001646/0.6041, allocations: 109.4 kB / 0.8213 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.6041, allocations: 3.344 kB / 0.8213 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.6041, allocations: 3.281 kB / 0.8213 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.6041, allocations: 0 / 0.8213 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.192e-05/0.6042, allocations: 19.03 kB / 0.8213 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.6042, allocations: 96 / 0.8213 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.368e-05/0.6042, allocations: 12.17 kB / 0.8213 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.6042, allocations: 4.391 kB / 0.8213 GB, free: 14.18 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 8.014e-05/0.6043, allocations: 120.7 kB / 0.8214 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.274e-06/0.6043, allocations: 11.27 kB / 0.8214 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001925/0.6045, allocations: 100.6 kB / 0.8215 GB, free: 14 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.6045, allocations: 1.828 kB / 0.8215 GB, free: 14 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.6045, allocations: 0 / 0.8215 GB, free: 14 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.6045, allocations: 4.75 kB / 0.8215 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003008/0.6048, allocations: 331.6 kB / 0.8218 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.6048, allocations: 0 / 0.8218 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.256e-05/0.6049, allocations: 9.078 kB / 0.8219 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.6049, allocations: 0.7031 kB / 0.8219 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-06/0.6049, allocations: 1.062 kB / 0.8219 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.6049, allocations: 1.953 kB / 0.8219 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.6049, allocations: 0 / 0.8219 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001689/0.6051, allocations: 200.6 kB / 0.8221 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.137e-06/0.6051, allocations: 6.656 kB / 0.8221 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.6051, allocations: 1.906 kB / 0.8221 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.948e-05/0.6051, allocations: 7.547 kB / 0.8221 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.6052, allocations: 15.58 kB / 0.8221 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.6052, allocations: 0.7031 kB / 0.8221 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.194e-05/0.6052, allocations: 86.23 kB / 0.8222 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.6052, allocations: 0 / 0.8222 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001566/0.6054, allocations: 10.31 kB / 0.8222 GB, free: 13.45 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.000381/0.6058, allocations: 0.7259 MB / 0.8229 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001672/0.6059, allocations: 63.44 kB / 0.8229 GB, free: 12.75 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.6059, allocations: 0 / 0.8229 GB, free: 12.75 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.516e-05/0.606, allocations: 32.28 kB / 0.823 GB, free: 12.75 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002089/0.6062, allocations: 24.92 kB / 0.823 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.6073, allocations: 1.38 MB / 0.8243 GB, free: 11.46 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.938e-05/0.6074, allocations: 65.16 kB / 0.8244 GB, free: 11.39 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.084e-05/0.6074, allocations: 10.06 kB / 0.8244 GB, free: 11.38 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.68e-05/0.6074, allocations: 12.66 kB / 0.8244 GB, free: 11.37 MB / 0.6198 GB Notification: Performance of SimCode: time 4.81e-07/0.6074, allocations: 0 / 0.8244 GB, free: 11.37 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01805/0.6255, allocations: 2.314 MB / 0.8267 GB, free: 10.49 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.156/7.781, allocations: 11.14 kB / 0.8267 GB, free: 10.48 MB / 0.6198 GB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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: 10.841587808914483] Failed to read output from testmodel.py, exit status != 0: 7.8606249038130045 7.878398757 7.274052203 Calling exit ...