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.0009216/0.0009216, allocations: 101.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.001708/0.001708, allocations: 209.2 kB / 22.24 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.9626/0.9626, allocations: 230.6 MB / 256 MB, free: 9.598 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.782/0.782, 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.001216/0.001216, allocations: 67.06 kB / 0.7182 GB, free: 4.012 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5346/0.5358, allocations: 102 MB / 0.8178 GB, free: 1.02 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001468/0.5373, allocations: 0.6483 MB / 0.8184 GB, free: 0.6133 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.5383, allocations: 1.09 MB / 0.8195 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.277e-05/0.5383, allocations: 0 / 0.8195 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.898e-05/0.5384, allocations: 3.938 kB / 0.8195 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.685e-05/0.5384, allocations: 5.016 kB / 0.8195 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.5387, allocations: 43.95 kB / 0.8195 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.5388, allocations: 49.8 kB / 0.8196 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.868e-05/0.5389, allocations: 10.86 kB / 0.8196 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.753e-05/0.539, allocations: 17.06 kB / 0.8196 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.599e-05/0.539, allocations: 16.2 kB / 0.8196 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.337e-05/0.539, allocations: 9.516 kB / 0.8196 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.995e-05/0.5391, allocations: 25.12 kB / 0.8197 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.197e-05/0.5391, allocations: 13.69 kB / 0.8197 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.097e-05/0.5391, allocations: 18.25 kB / 0.8197 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.5393, allocations: 59.25 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.5393, allocations: 1.344 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.564e-06/0.5393, allocations: 0 / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.798e-06/0.5393, allocations: 0 / 0.8197 GB, free: 15.7 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.000422/0.5397, allocations: 297 kB / 0.82 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.5397, allocations: 12.91 kB / 0.82 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.958e-05/0.5398, allocations: 40.42 kB / 0.8201 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.692e-05/0.5398, allocations: 6.328 kB / 0.8201 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.297e-05/0.5399, allocations: 109.9 kB / 0.8202 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.5399, allocations: 4.156 kB / 0.8202 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.5399, allocations: 5.859 kB / 0.8202 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.5401, allocations: 62.91 kB / 0.8203 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.5401, allocations: 3.938 kB / 0.8203 GB, free: 15.19 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.5401, allocations: 0 / 0.8203 GB, free: 15.19 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.5401, allocations: 1 kB / 0.8203 GB, free: 15.19 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001059/0.5402, allocations: 52.59 kB / 0.8203 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003375/0.5405, allocations: 241.1 kB / 0.8205 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001138/0.5406, allocations: 51.19 kB / 0.8206 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.286e-05/0.5407, allocations: 29.77 kB / 0.8206 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.5407, allocations: 1.938 kB / 0.8206 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001646/0.5409, allocations: 82.06 kB / 0.8207 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.864e-06/0.5409, allocations: 3.938 kB / 0.8207 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0002621/0.5411, allocations: 118 kB / 0.8208 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.5412, allocations: 55.06 kB / 0.8209 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.831e-05/0.5413, allocations: 103.9 kB / 0.821 GB, free: 14.6 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.5413, allocations: 29.7 kB / 0.821 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.552e-05/0.5413, allocations: 86.84 kB / 0.8211 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.5413, allocations: 15.7 kB / 0.8211 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.412e-05/0.5414, allocations: 25.84 kB / 0.8211 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.695e-05/0.5414, allocations: 318.3 kB / 0.8214 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.826e-05/0.5415, allocations: 26.44 kB / 0.8214 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.53e-05/0.5416, allocations: 52.7 kB / 0.8215 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.5417, allocations: 79.2 kB / 0.8216 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5417, allocations: 4 kB / 0.8216 GB, free: 14.03 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001563/0.5418, allocations: 104.8 kB / 0.8217 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.5418, allocations: 6.453 kB / 0.8217 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.5418, allocations: 1.188 kB / 0.8217 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.5419, allocations: 2.75 kB / 0.8217 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.668e-05/0.5419, allocations: 12.34 kB / 0.8217 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.5419, allocations: 5.312 kB / 0.8217 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.379e-05/0.542, allocations: 18.41 kB / 0.8217 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.542, allocations: 1.281 kB / 0.8217 GB, free: 13.96 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.443e-05/0.542, allocations: 123.3 kB / 0.8218 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-06/0.542, allocations: 7.109 kB / 0.8218 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001811/0.5422, allocations: 99.12 kB / 0.8219 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.5422, allocations: 3.359 kB / 0.8219 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.5422, allocations: 64 / 0.8219 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.5422, allocations: 4 kB / 0.8219 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000296/0.5425, allocations: 332.8 kB / 0.8223 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.5425, allocations: 0 / 0.8223 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.444e-05/0.5426, allocations: 8.312 kB / 0.8223 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.5426, allocations: 0 / 0.8223 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.5426, allocations: 2.031 kB / 0.8223 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.5426, allocations: 0.6094 kB / 0.8223 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5426, allocations: 1.812 kB / 0.8223 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001686/0.5428, allocations: 199 kB / 0.8225 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.017e-05/0.5428, allocations: 6.656 kB / 0.8225 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.046e-05/0.5428, allocations: 1.609 kB / 0.8225 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.159e-05/0.5428, allocations: 9.281 kB / 0.8225 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.108e-05/0.5429, allocations: 11.53 kB / 0.8225 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.5429, allocations: 3.312 kB / 0.8225 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.134e-05/0.5429, allocations: 82.61 kB / 0.8226 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5429, allocations: 0 / 0.8226 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001725/0.5431, allocations: 18.09 kB / 0.8226 GB, free: 13.22 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.0004071/0.5435, allocations: 0.7289 MB / 0.8233 GB, free: 12.54 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001627/0.5436, allocations: 64.88 kB / 0.8234 GB, free: 12.53 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5436, allocations: 1.281 kB / 0.8234 GB, free: 12.53 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.33e-05/0.5437, allocations: 26.72 kB / 0.8234 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001975/0.5439, allocations: 15.16 kB / 0.8234 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.545, allocations: 1.385 MB / 0.8248 GB, free: 11.24 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.609e-05/0.545, allocations: 69.98 kB / 0.8248 GB, free: 11.16 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.367e-05/0.5451, allocations: 8.172 kB / 0.8248 GB, free: 11.16 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.826e-05/0.5451, allocations: 15.06 kB / 0.8248 GB, free: 11.15 MB / 0.6198 GB Notification: Performance of SimCode: time 4.81e-07/0.5451, allocations: 0 / 0.8248 GB, free: 11.15 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01463/0.5597, allocations: 2.313 MB / 0.8271 GB, free: 10.28 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.296/6.856, allocations: 6.078 kB / 0.8271 GB, free: 10.27 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: 9.826395550277084] Failed to read output from testmodel.py, exit status != 0: 6.935498035978526 6.947438939 6.405611729 Calling exit ...