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.001331/0.001331, allocations: 71.75 kB / 19.03 MB, free: 1.23 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: 158.5 kB / 22.28 MB, free: 3.617 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 1.438/1.438, allocations: 177.2 MB / 202.7 MB, free: 4.812 MB / 186.7 MB " [Timeout remaining time 178] 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 1.217/1.217, allocations: 154.7 MB / 413.8 MB, free: 3.125 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: 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.002039/0.002039, allocations: 68.34 kB / 0.6181 GB, free: 1.141 MB / 0.5105 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.2074, allocations: 102 MB / 0.7176 GB, free: 11.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00203/0.2094, allocations: 0.6468 MB / 0.7183 GB, free: 10.62 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001648/0.211, allocations: 1.085 MB / 0.7193 GB, free: 9.527 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.534e-05/0.2111, allocations: 4 kB / 0.7193 GB, free: 9.523 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.497e-05/0.2111, allocations: 3.938 kB / 0.7193 GB, free: 9.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.953e-05/0.2112, allocations: 11.91 kB / 0.7193 GB, free: 9.508 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.2115, allocations: 39.84 kB / 0.7194 GB, free: 9.469 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002832/0.2118, allocations: 43.92 kB / 0.7194 GB, free: 9.426 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.2119, allocations: 11.91 kB / 0.7194 GB, free: 9.414 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.212, allocations: 27.98 kB / 0.7195 GB, free: 9.387 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.941e-05/0.2121, allocations: 27.84 kB / 0.7195 GB, free: 9.359 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.2121, allocations: 4 kB / 0.7195 GB, free: 9.355 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.69e-05/0.2122, allocations: 20 kB / 0.7195 GB, free: 9.336 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.967e-05/0.2122, allocations: 15.91 kB / 0.7195 GB, free: 9.32 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.151e-05/0.2123, allocations: 15.92 kB / 0.7195 GB, free: 9.305 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.2124, allocations: 64 kB / 0.7196 GB, free: 9.242 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2124, allocations: 0 / 0.7196 GB, free: 9.242 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2124, allocations: 0 / 0.7196 GB, free: 9.242 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.2125, allocations: 4 kB / 0.7196 GB, free: 9.238 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.0007151/0.2132, allocations: 296.4 kB / 0.7199 GB, free: 8.918 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.2132, allocations: 8.031 kB / 0.7199 GB, free: 8.91 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.655e-05/0.2133, allocations: 38.69 kB / 0.7199 GB, free: 8.863 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.2134, allocations: 8.922 kB / 0.7199 GB, free: 8.855 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.2135, allocations: 110.4 kB / 0.72 GB, free: 8.723 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.834e-05/0.2136, allocations: 4.375 kB / 0.72 GB, free: 8.719 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.2136, allocations: 4.375 kB / 0.7201 GB, free: 8.715 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.2138, allocations: 62.22 kB / 0.7201 GB, free: 8.648 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.2139, allocations: 11.88 kB / 0.7201 GB, free: 8.637 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.2139, allocations: 8 kB / 0.7201 GB, free: 8.629 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.2139, allocations: 0 / 0.7201 GB, free: 8.629 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002203/0.2141, allocations: 39.95 kB / 0.7202 GB, free: 8.59 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006964/0.2148, allocations: 235.9 kB / 0.7204 GB, free: 8.316 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001916/0.215, allocations: 54.55 kB / 0.7204 GB, free: 8.254 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.2151, allocations: 28.91 kB / 0.7205 GB, free: 8.223 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.2151, allocations: 4 kB / 0.7205 GB, free: 8.219 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000324/0.2154, allocations: 75.38 kB / 0.7205 GB, free: 8.133 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.2154, allocations: 0 / 0.7205 GB, free: 8.133 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0004967/0.2159, allocations: 117.6 kB / 0.7207 GB, free: 8.012 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/0.216, allocations: 51.48 kB / 0.7207 GB, free: 7.949 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.2161, allocations: 113.8 kB / 0.7208 GB, free: 7.828 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.2162, allocations: 33.64 kB / 0.7208 GB, free: 7.789 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.032e-05/0.2163, allocations: 84.14 kB / 0.7209 GB, free: 7.703 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.2163, allocations: 15.91 kB / 0.7209 GB, free: 7.688 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.029e-05/0.2164, allocations: 21.7 kB / 0.721 GB, free: 7.66 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002011/0.2166, allocations: 322.8 kB / 0.7213 GB, free: 7.336 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.2167, allocations: 23.97 kB / 0.7213 GB, free: 7.312 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.2168, allocations: 47.41 kB / 0.7213 GB, free: 7.254 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002293/0.217, allocations: 79.34 kB / 0.7214 GB, free: 7.164 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.217, allocations: 0 / 0.7214 GB, free: 7.164 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003201/0.2174, allocations: 113.5 kB / 0.7215 GB, free: 7.047 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.2174, allocations: 6.188 kB / 0.7215 GB, free: 7.043 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.2174, allocations: 0 / 0.7215 GB, free: 7.043 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.2174, allocations: 7.938 kB / 0.7215 GB, free: 7.035 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.2175, allocations: 20.02 kB / 0.7216 GB, free: 7.016 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.2175, allocations: 4 kB / 0.7216 GB, free: 7.012 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.338e-05/0.2176, allocations: 11.92 kB / 0.7216 GB, free: 7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.2176, allocations: 0 / 0.7216 GB, free: 7 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 0.0001103/0.2177, allocations: 121.7 kB / 0.7217 GB, free: 6.871 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.2177, allocations: 7.953 kB / 0.7217 GB, free: 6.863 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000309/0.2181, allocations: 102.6 kB / 0.7218 GB, free: 6.758 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2181, allocations: 3.938 kB / 0.7218 GB, free: 6.754 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2181, allocations: 4 kB / 0.7218 GB, free: 6.75 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.2181, allocations: 3.984 kB / 0.7218 GB, free: 6.746 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005228/0.2186, allocations: 317.7 kB / 0.7221 GB, free: 6.387 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2186, allocations: 0 / 0.7221 GB, free: 6.387 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.201e-05/0.2187, allocations: 11.98 kB / 0.7221 GB, free: 6.375 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.2187, allocations: 0 / 0.7221 GB, free: 6.375 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.2187, allocations: 0 / 0.7221 GB, free: 6.375 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2187, allocations: 0 / 0.7221 GB, free: 6.375 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2187, allocations: 3.938 kB / 0.7221 GB, free: 6.371 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003404/0.219, allocations: 203.4 kB / 0.7223 GB, free: 6.156 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.12e-05/0.219, allocations: 0 / 0.7223 GB, free: 6.156 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.925e-05/0.219, allocations: 4 kB / 0.7223 GB, free: 6.152 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.2191, allocations: 11.98 kB / 0.7223 GB, free: 6.141 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.728e-05/0.2192, allocations: 7.922 kB / 0.7223 GB, free: 6.133 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.2192, allocations: 4 kB / 0.7223 GB, free: 6.129 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.881e-05/0.2193, allocations: 83.28 kB / 0.7224 GB, free: 6.047 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.2193, allocations: 0 / 0.7224 GB, free: 6.047 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002548/0.2195, allocations: 12 kB / 0.7224 GB, free: 6.035 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.0007977/0.2203, allocations: 0.7364 MB / 0.7232 GB, free: 5.273 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003186/0.2206, allocations: 63.89 kB / 0.7232 GB, free: 5.211 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2207, allocations: 0 / 0.7232 GB, free: 5.211 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.2208, allocations: 28.53 kB / 0.7232 GB, free: 5.184 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.2211, allocations: 18.47 kB / 0.7233 GB, free: 5.168 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.2232, allocations: 1.387 MB / 0.7246 GB, free: 3.68 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.546e-05/0.2233, allocations: 67.34 kB / 0.7247 GB, free: 3.594 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.842e-05/0.2234, allocations: 4 kB / 0.7247 GB, free: 3.59 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.594e-05/0.2234, allocations: 20.48 kB / 0.7247 GB, free: 3.57 MB / 0.6198 GB Notification: Performance of SimCode: time 8.01e-07/0.2234, allocations: 0 / 0.7247 GB, free: 3.57 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0425/0.2659, allocations: 2.442 MB / 0.7271 GB, free: 1.242 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.71, allocations: 4 kB / 0.7271 GB, free: 1.238 MB / 0.6198 GB " [Timeout remaining time 648] (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: 15.757534690987086] Failed to read output from testmodel.py, exit status != 0: 11.81743899799767 11.836018072 11.619850845 Calling exit ...