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.00079/0.00079, 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.000831/0.000831, allocations: 219.8 kB / 22.26 MB, free: 3.707 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.9584/0.9584, allocations: 230.6 MB / 256 MB, free: 9.805 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.7976/0.7976, allocations: 203.8 MB / 0.5042 GB, free: 10.76 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.000911/0.000911, allocations: 62.31 kB / 0.7182 GB, free: 4.395 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5421/0.5431, allocations: 102 MB / 0.8178 GB, free: 1.273 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001479/0.5445, allocations: 0.6649 MB / 0.8185 GB, free: 0.8555 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009467/0.5455, allocations: 1.107 MB / 0.8196 GB, free: 44 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.729e-05/0.5455, allocations: 2.594 kB / 0.8196 GB, free: 44 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.601e-05/0.5456, allocations: 3.938 kB / 0.8196 GB, free: 40 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.441e-05/0.5456, allocations: 5.625 kB / 0.8196 GB, free: 36 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002634/0.5459, allocations: 43 kB / 0.8196 GB, free: 12 kB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.000119/0.546, allocations: 49.31 kB / 0.8197 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.5461, allocations: 14.45 kB / 0.8197 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.546e-05/0.5462, allocations: 13.23 kB / 0.8197 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.613e-05/0.5462, allocations: 25.12 kB / 0.8197 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.5463, allocations: 2.188 kB / 0.8197 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.071e-05/0.5463, allocations: 34.52 kB / 0.8198 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.133e-05/0.5463, allocations: 10.47 kB / 0.8198 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.474e-05/0.5464, allocations: 17.53 kB / 0.8198 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.5465, allocations: 65.7 kB / 0.8199 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.5465, allocations: 7.719 kB / 0.8199 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.753e-06/0.5465, allocations: 0 / 0.8199 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.581e-06/0.5465, allocations: 0 / 0.8199 GB, free: 15.9 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.0004499/0.547, allocations: 295.1 kB / 0.8201 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.547, allocations: 7.781 kB / 0.8201 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.888e-05/0.547, allocations: 33.31 kB / 0.8202 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.918e-05/0.5471, allocations: 14.38 kB / 0.8202 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.327e-05/0.5472, allocations: 114.7 kB / 0.8203 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.5472, allocations: 384 / 0.8203 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.173e-05/0.5472, allocations: 4.672 kB / 0.8203 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.5474, allocations: 64.11 kB / 0.8204 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.5474, allocations: 7.828 kB / 0.8204 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.5474, allocations: 0 / 0.8204 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.5474, allocations: 0 / 0.8204 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/0.5475, allocations: 46.91 kB / 0.8204 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003686/0.5479, allocations: 245.9 kB / 0.8207 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.548, allocations: 51.33 kB / 0.8207 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.3e-05/0.548, allocations: 32.03 kB / 0.8207 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.5481, allocations: 0.5156 kB / 0.8207 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001589/0.5482, allocations: 82.06 kB / 0.8208 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.653e-06/0.5482, allocations: 0 / 0.8208 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.000261/0.5485, allocations: 115.6 kB / 0.8209 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.5485, allocations: 54.38 kB / 0.821 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.867e-05/0.5486, allocations: 104.5 kB / 0.8211 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.5486, allocations: 35.7 kB / 0.8211 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.695e-05/0.5486, allocations: 85.3 kB / 0.8212 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.5487, allocations: 15.62 kB / 0.8212 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-05/0.5487, allocations: 27.48 kB / 0.8212 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.448e-05/0.5488, allocations: 324.5 kB / 0.8215 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.207e-05/0.5488, allocations: 22.98 kB / 0.8216 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.926e-05/0.5489, allocations: 55.41 kB / 0.8216 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.549, allocations: 76.52 kB / 0.8217 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.549, allocations: 3.812 kB / 0.8217 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001546/0.5492, allocations: 105.3 kB / 0.8218 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.5492, allocations: 4.031 kB / 0.8218 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.5492, allocations: 2.453 kB / 0.8218 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.5492, allocations: 3.281 kB / 0.8218 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.538e-05/0.5493, allocations: 14.69 kB / 0.8218 GB, free: 14.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.5493, allocations: 10.38 kB / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.465e-05/0.5493, allocations: 7.172 kB / 0.8218 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.5493, allocations: 6.984 kB / 0.8218 GB, free: 14.16 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.028e-05/0.5494, allocations: 120.3 kB / 0.822 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.885e-06/0.5494, allocations: 4.516 kB / 0.822 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.5496, allocations: 105 kB / 0.8221 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.5496, allocations: 7.734 kB / 0.8221 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.5496, allocations: 0 / 0.8221 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5496, allocations: 0.6562 kB / 0.8221 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000314/0.5499, allocations: 329.8 kB / 0.8224 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5499, allocations: 0.8438 kB / 0.8224 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.341e-05/0.55, allocations: 9 kB / 0.8224 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.55, allocations: 0 / 0.8224 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.55, allocations: 2.172 kB / 0.8224 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.55, allocations: 0 / 0.8224 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.55, allocations: 1.438 kB / 0.8224 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.5501, allocations: 199.9 kB / 0.8226 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.536e-06/0.5502, allocations: 7.781 kB / 0.8226 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.5502, allocations: 0.7969 kB / 0.8226 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.813e-05/0.5502, allocations: 10.25 kB / 0.8226 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.5503, allocations: 10.16 kB / 0.8226 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.5503, allocations: 2.234 kB / 0.8226 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.304e-05/0.5503, allocations: 91.14 kB / 0.8227 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.5503, allocations: 0 / 0.8227 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001626/0.5505, allocations: 10.86 kB / 0.8227 GB, free: 13.43 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.0004066/0.5509, allocations: 0.7331 MB / 0.8234 GB, free: 12.74 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001673/0.551, allocations: 64.19 kB / 0.8235 GB, free: 12.72 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.551, allocations: 0 / 0.8235 GB, free: 12.72 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 5.982e-05/0.5511, allocations: 28.33 kB / 0.8235 GB, free: 12.72 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002053/0.5513, allocations: 18.7 kB / 0.8235 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.5524, allocations: 1.383 MB / 0.8249 GB, free: 11.43 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001775/0.5525, allocations: 0.6864 MB / 0.8256 GB, free: 10.73 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.258e-05/0.5526, allocations: 4.656 kB / 0.8256 GB, free: 10.73 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.79e-05/0.5526, allocations: 16.64 kB / 0.8256 GB, free: 10.72 MB / 0.6198 GB Notification: Performance of SimCode: time 8.31e-07/0.5526, allocations: 0 / 0.8256 GB, free: 10.72 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01759/0.5702, allocations: 1.874 MB / 0.8274 GB, free: 10.28 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.479/7.049, allocations: 9.047 kB / 0.8274 GB, free: 10.28 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.016093258978799] Failed to read output from testmodel.py, exit status != 0: 7.126181636936963 7.137934917 6.589326939 Calling exit ...