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.0007653/0.0007653, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001079/0.001079, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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.9047/0.9047, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.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.7205/0.7205, allocations: 154.6 MB / 413.8 MB, free: 0.7852 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0 / 0.6181 GB, free: 13.68 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.138e-05/2.376e-05, allocations: 5.781 kB / 0.6181 GB, free: 13.67 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001369/0.001393, allocations: 0.6456 MB / 0.6187 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001125/0.002518, allocations: 1.092 MB / 0.6198 GB, free: 11.92 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.637e-05/0.002564, allocations: 0 / 0.6198 GB, free: 11.92 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.825e-05/0.002592, allocations: 3.938 kB / 0.6198 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.736e-05/0.00266, allocations: 19.86 kB / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.000318/0.002978, allocations: 35.83 kB / 0.6198 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 9.658e-05/0.003074, allocations: 55.73 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.615e-05/0.00317, allocations: 7.984 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 7.918e-05/0.00325, allocations: 27.97 kB / 0.6199 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.815e-05/0.003298, allocations: 15.92 kB / 0.6199 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.555e-05/0.003313, allocations: 4 kB / 0.6199 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.2e-05/0.003375, allocations: 19.98 kB / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.523e-05/0.003401, allocations: 11.98 kB / 0.62 GB, free: 11.72 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.922e-05/0.00343, allocations: 15.92 kB / 0.62 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001285/0.003558, allocations: 67.83 kB / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.003561, allocations: 0 / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of FrontEnd: time 9.01e-07/0.003562, allocations: 0 / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.003566, allocations: 0 / 0.6201 GB, free: 11.64 MB / 0.5886 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.0004407/0.004006, allocations: 294.2 kB / 0.6203 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.004044, allocations: 8.031 kB / 0.6203 GB, free: 11.31 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.124e-05/0.004076, allocations: 34.75 kB / 0.6204 GB, free: 11.27 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.22e-05/0.004138, allocations: 4.891 kB / 0.6204 GB, free: 11.26 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.382e-05/0.004212, allocations: 117.6 kB / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.004223, allocations: 12.38 kB / 0.6205 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-06/0.004231, allocations: 384 / 0.6205 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/0.004374, allocations: 66.22 kB / 0.6206 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.004381, allocations: 192 / 0.6206 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.00439, allocations: 384 / 0.6206 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.004395, allocations: 4.125 kB / 0.6206 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.816e-05/0.004493, allocations: 39.95 kB / 0.6206 GB, free: 11 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003602/0.004853, allocations: 240 kB / 0.6208 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/0.004976, allocations: 54.48 kB / 0.6209 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.405e-05/0.00503, allocations: 36.94 kB / 0.6209 GB, free: 10.62 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.005052, allocations: 3.938 kB / 0.6209 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001489/0.005201, allocations: 71.34 kB / 0.621 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.005202, allocations: 0 / 0.621 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002781/0.00548, allocations: 125.6 kB / 0.6211 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.00552, allocations: 51.41 kB / 0.6212 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003404/0.00586, allocations: 109.8 kB / 0.6213 GB, free: 10.22 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.005875, allocations: 25.7 kB / 0.6213 GB, free: 10.19 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.905e-05/0.005914, allocations: 92.08 kB / 0.6214 GB, free: 10.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.751e-05/0.005931, allocations: 19.84 kB / 0.6214 GB, free: 10.08 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.294e-05/0.005964, allocations: 21.72 kB / 0.6214 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.517e-05/0.006039, allocations: 318.8 kB / 0.6217 GB, free: 9.73 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.291e-05/0.006092, allocations: 23.98 kB / 0.6217 GB, free: 9.707 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.8e-05/0.00615, allocations: 51.41 kB / 0.6218 GB, free: 9.645 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001098/0.00626, allocations: 79.33 kB / 0.6219 GB, free: 9.555 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.006262, allocations: 0.5 kB / 0.6219 GB, free: 9.555 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001449/0.006407, allocations: 109.5 kB / 0.622 GB, free: 9.441 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.006424, allocations: 8 kB / 0.622 GB, free: 9.434 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.006429, allocations: 3.938 kB / 0.622 GB, free: 9.43 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.00644, allocations: 0 / 0.622 GB, free: 9.43 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.111e-05/0.006512, allocations: 23.98 kB / 0.622 GB, free: 9.406 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.006517, allocations: 0 / 0.622 GB, free: 9.406 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.201e-05/0.006549, allocations: 8 kB / 0.622 GB, free: 9.398 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.006557, allocations: 3.984 kB / 0.622 GB, free: 9.395 MB / 0.5886 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.189e-05/0.006619, allocations: 114.8 kB / 0.6221 GB, free: 9.273 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.417e-06/0.006629, allocations: 15.92 kB / 0.6221 GB, free: 9.258 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001678/0.006796, allocations: 110 kB / 0.6223 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.006799, allocations: 0 / 0.6223 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.006809, allocations: 0 / 0.6223 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.006812, allocations: 0 / 0.6223 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002771/0.00709, allocations: 321.7 kB / 0.6226 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.007091, allocations: 3.938 kB / 0.6226 GB, free: 8.773 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.159e-05/0.007122, allocations: 11.98 kB / 0.6226 GB, free: 8.762 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.007126, allocations: 4 kB / 0.6226 GB, free: 8.758 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.007133, allocations: 0 / 0.6226 GB, free: 8.758 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.007134, allocations: 0 / 0.6226 GB, free: 8.758 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.007136, allocations: 0 / 0.6226 GB, free: 8.758 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001504/0.007286, allocations: 199.4 kB / 0.6228 GB, free: 8.547 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.021e-06/0.007292, allocations: 0 / 0.6228 GB, free: 8.547 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.007305, allocations: 0 / 0.6228 GB, free: 8.547 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.089e-05/0.007355, allocations: 11.98 kB / 0.6228 GB, free: 8.535 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.541e-05/0.007391, allocations: 8 kB / 0.6228 GB, free: 8.527 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.007404, allocations: 4 kB / 0.6228 GB, free: 8.523 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.048e-05/0.007435, allocations: 87.45 kB / 0.6229 GB, free: 8.438 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.007435, allocations: 3.938 kB / 0.6229 GB, free: 8.434 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001742/0.007609, allocations: 19.94 kB / 0.6229 GB, free: 8.414 MB / 0.5886 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.0003791/0.007988, allocations: 0.7241 MB / 0.6236 GB, free: 7.664 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001601/0.008148, allocations: 71.88 kB / 0.6237 GB, free: 7.594 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.008149, allocations: 0 / 0.6237 GB, free: 7.594 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.977e-05/0.008209, allocations: 23.98 kB / 0.6237 GB, free: 7.57 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002034/0.008413, allocations: 11.92 kB / 0.6237 GB, free: 7.559 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.009447, allocations: 1.377 MB / 0.6251 GB, free: 6.082 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.595e-05/0.009503, allocations: 67.33 kB / 0.6251 GB, free: 5.996 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.564e-05/0.009539, allocations: 4.141 kB / 0.6251 GB, free: 5.992 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.025e-05/0.009579, allocations: 16.48 kB / 0.6251 GB, free: 5.977 MB / 0.5886 GB Notification: Performance of SimCode: time 7.11e-07/0.00958, allocations: 4 kB / 0.6251 GB, free: 5.973 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.02821, allocations: 2.442 MB / 0.6275 GB, free: 3.688 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.546/6.575, allocations: 5.234 kB / 0.6275 GB, free: 3.684 MB / 0.5886 GB " [Timeout remaining time 653] (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: 9.25046611763537] Failed to read output from testmodel.py, exit status != 0: 6.65452089253813 6.664299184 6.658895906 Calling exit ...