Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Conversions.Validation.RealToInteger.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.0008474/0.0008474, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0009748/0.0009748, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9419/0.9419, allocations: 177.2 MB / 202.8 MB, free: 5.734 MB / 186.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.7329/0.7329, allocations: 154.5 MB / 413.7 MB, free: 0.8281 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 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.Conversions.Validation.RealToInteger,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.355e-06/2.355e-06, allocations: 0 / 0.618 GB, free: 12.67 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.881e-05/2.116e-05, allocations: 2.281 kB / 0.618 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001169/0.00119, allocations: 0.6183 MB / 0.6186 GB, free: 12.06 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.0007968/0.001987, allocations: 0.8393 MB / 0.6194 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.236e-05/0.002019, allocations: 4 kB / 0.6194 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 2.756e-05/0.002047, allocations: 0 / 0.6194 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 6.048e-05/0.002107, allocations: 3.938 kB / 0.6194 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001487/0.002256, allocations: 15.97 kB / 0.6194 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 7.102e-05/0.002327, allocations: 23.92 kB / 0.6195 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.00243, allocations: 4 kB / 0.6195 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 8.188e-05/0.002512, allocations: 23.92 kB / 0.6195 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 4.598e-05/0.002558, allocations: 7.984 kB / 0.6195 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 2.76e-05/0.002585, allocations: 4 kB / 0.6195 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 1.024e-05/0.002596, allocations: 7.938 kB / 0.6195 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 1.938e-05/0.002615, allocations: 7.984 kB / 0.6195 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 2.059e-05/0.002636, allocations: 4 kB / 0.6195 GB, free: 11.1 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 9.083e-05/0.002726, allocations: 27.89 kB / 0.6196 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.002731, allocations: 4 kB / 0.6196 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of FrontEnd: time 9.62e-07/0.002732, allocations: 0 / 0.6196 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.002737, allocations: 0 / 0.6196 GB, free: 11.07 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004129/0.00315, allocations: 262.3 kB / 0.6198 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.003198, allocations: 13.47 kB / 0.6198 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.481e-05/0.003233, allocations: 34.75 kB / 0.6199 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.504e-05/0.003258, allocations: 4.891 kB / 0.6199 GB, free: 10.72 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.984e-05/0.003358, allocations: 109.8 kB / 0.62 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.003381, allocations: 384 / 0.62 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.016e-05/0.003392, allocations: 384 / 0.62 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001645/0.003556, allocations: 54.23 kB / 0.62 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.003567, allocations: 4.172 kB / 0.62 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.003576, allocations: 384 / 0.62 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.003583, allocations: 8.125 kB / 0.62 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.003717, allocations: 39.89 kB / 0.6201 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000353/0.00407, allocations: 216.1 kB / 0.6203 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001156/0.004185, allocations: 38.56 kB / 0.6203 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.865e-05/0.004254, allocations: 20.89 kB / 0.6203 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.004272, allocations: 0 / 0.6203 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.0043, allocations: 46.44 kB / 0.6204 GB, free: 10.1 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.004301, allocations: 7.938 kB / 0.6204 GB, free: 10.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0003222/0.004624, allocations: 81.64 kB / 0.6205 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.004662, allocations: 51.41 kB / 0.6205 GB, free: 9.945 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.277e-05/0.004735, allocations: 97.84 kB / 0.6206 GB, free: 9.84 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.00475, allocations: 33.7 kB / 0.6206 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.476e-05/0.004795, allocations: 88.08 kB / 0.6207 GB, free: 9.711 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.004814, allocations: 3.938 kB / 0.6207 GB, free: 9.707 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.004847, allocations: 17.84 kB / 0.6207 GB, free: 9.684 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.004958, allocations: 318.8 kB / 0.621 GB, free: 9.363 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.338e-05/0.005022, allocations: 15.98 kB / 0.6211 GB, free: 9.348 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.496e-05/0.005077, allocations: 15.98 kB / 0.6211 GB, free: 9.332 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.005198, allocations: 44.75 kB / 0.6211 GB, free: 9.285 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.005201, allocations: 0 / 0.6211 GB, free: 9.285 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001666/0.005367, allocations: 81.61 kB / 0.6212 GB, free: 9.199 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.005385, allocations: 8 kB / 0.6212 GB, free: 9.191 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.005391, allocations: 0 / 0.6212 GB, free: 9.191 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.005404, allocations: 0 / 0.6212 GB, free: 9.191 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.242e-05/0.005496, allocations: 7.984 kB / 0.6212 GB, free: 9.184 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.401e-06/0.005502, allocations: 0 / 0.6212 GB, free: 9.184 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.521e-05/0.005537, allocations: 4 kB / 0.6212 GB, free: 9.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.005545, allocations: 7.984 kB / 0.6212 GB, free: 9.172 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.708e-05/0.005622, allocations: 110.9 kB / 0.6213 GB, free: 9.055 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/0.005644, allocations: 3.938 kB / 0.6213 GB, free: 9.051 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.451e-05/0.005669, allocations: 11.31 kB / 0.6213 GB, free: 9.035 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.005672, allocations: 4 kB / 0.6213 GB, free: 9.031 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.005678, allocations: 0 / 0.6213 GB, free: 9.031 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.005682, allocations: 3.938 kB / 0.6213 GB, free: 9.027 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.005835, allocations: 124.8 kB / 0.6215 GB, free: 8.863 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.005836, allocations: 0 / 0.6215 GB, free: 8.863 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.848e-05/0.005885, allocations: 11.98 kB / 0.6215 GB, free: 8.852 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.005889, allocations: 3.938 kB / 0.6215 GB, free: 8.848 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.005898, allocations: 4 kB / 0.6215 GB, free: 8.844 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.005899, allocations: 0 / 0.6215 GB, free: 8.844 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.0059, allocations: 0 / 0.6215 GB, free: 8.844 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002119/0.006112, allocations: 167.5 kB / 0.6216 GB, free: 8.664 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 1.081e-05/0.006123, allocations: 7.891 kB / 0.6217 GB, free: 8.656 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.00614, allocations: 7.984 kB / 0.6217 GB, free: 8.648 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.262e-05/0.006203, allocations: 0 / 0.6217 GB, free: 8.648 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.668e-05/0.006259, allocations: 7.984 kB / 0.6217 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.006265, allocations: 8.031 kB / 0.6217 GB, free: 8.633 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.062e-05/0.006305, allocations: 79.28 kB / 0.6218 GB, free: 8.555 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.01e-07/0.006306, allocations: 3.938 kB / 0.6218 GB, free: 8.551 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002575/0.006563, allocations: 11.88 kB / 0.6218 GB, free: 8.539 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0005054/0.007068, allocations: 0.7033 MB / 0.6225 GB, free: 7.809 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001877/0.007256, allocations: 43.98 kB / 0.6225 GB, free: 7.766 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.007258, allocations: 0 / 0.6225 GB, free: 7.766 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.326e-05/0.007331, allocations: 27.92 kB / 0.6225 GB, free: 7.738 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.00765, allocations: 0 / 0.6225 GB, free: 7.738 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004551/0.008105, allocations: 134.5 kB / 0.6227 GB, free: 7.566 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.525e-05/0.00816, allocations: 59.34 kB / 0.6227 GB, free: 7.488 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.173e-05/0.008192, allocations: 4.125 kB / 0.6227 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.304e-05/0.008235, allocations: 12.5 kB / 0.6227 GB, free: 7.473 MB / 0.5417 GB Notification: Performance of SimCode: time 6.81e-07/0.008236, allocations: 0 / 0.6227 GB, free: 7.473 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.0303, allocations: 2.134 MB / 0.6248 GB, free: 5.492 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.987/7.018, allocations: 0 / 0.6248 GB, free: 5.492 MB / 0.5417 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.921965453773737] Failed to read output from testmodel.py, exit status != 0: 7.102729580365121 7.117716126 7.112269065 Calling exit ...