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.0008798/0.0008798, allocations: 80.45 kB / 19.15 MB, free: 0.7734 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.000997/0.000997, allocations: 170 kB / 22.43 MB, free: 2.141 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.8906/0.8906, allocations: 177.2 MB / 202.8 MB, free: 5.758 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.6928/0.6928, allocations: 155 MB / 414.2 MB, free: 480 kB / 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: 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.0009443/0.0009443, allocations: 71.91 kB / 0.6186 GB, free: 13.25 MB / 0.5886 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.4593/0.4603, allocations: 102 MB / 0.7182 GB, free: 23.12 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001304/0.4616, allocations: 0.6014 MB / 0.7188 GB, free: 22.75 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.0006512/0.4622, allocations: 0.8477 MB / 0.7196 GB, free: 22.12 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.082e-05/0.4623, allocations: 3.938 kB / 0.7196 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 2.598e-05/0.4623, allocations: 0.6094 kB / 0.7196 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 5.523e-05/0.4624, allocations: 5.062 kB / 0.7196 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001404/0.4625, allocations: 11.69 kB / 0.7197 GB, free: 22.11 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 6.744e-05/0.4626, allocations: 30.66 kB / 0.7197 GB, free: 22.09 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.4627, allocations: 6.906 kB / 0.7197 GB, free: 22.09 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 7.299e-05/0.4627, allocations: 12.19 kB / 0.7197 GB, free: 22.08 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 4.587e-05/0.4628, allocations: 18.77 kB / 0.7197 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.4628, allocations: 2.406 kB / 0.7197 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 7.264e-06/0.4628, allocations: 2.219 kB / 0.7197 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 1.555e-05/0.4628, allocations: 2.281 kB / 0.7197 GB, free: 22.07 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 2.131e-05/0.4629, allocations: 15.67 kB / 0.7197 GB, free: 22.06 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 7.908e-05/0.4629, allocations: 27.48 kB / 0.7198 GB, free: 22.05 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.4629, allocations: 3.938 kB / 0.7198 GB, free: 22.05 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.923e-06/0.4629, allocations: 5.406 kB / 0.7198 GB, free: 22.04 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.4629, allocations: 0 / 0.7198 GB, free: 22.04 MB / 0.6355 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.0003117/0.4633, allocations: 265 kB / 0.72 GB, free: 21.77 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.4633, allocations: 10.72 kB / 0.72 GB, free: 21.77 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.255e-05/0.4633, allocations: 36.31 kB / 0.7201 GB, free: 21.73 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.102e-05/0.4633, allocations: 5.953 kB / 0.7201 GB, free: 21.73 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.817e-05/0.4634, allocations: 105.8 kB / 0.7202 GB, free: 21.6 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.4634, allocations: 5.75 kB / 0.7202 GB, free: 21.6 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.418e-06/0.4634, allocations: 1.719 kB / 0.7202 GB, free: 21.6 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.4635, allocations: 52.73 kB / 0.7202 GB, free: 21.56 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.4636, allocations: 3.938 kB / 0.7202 GB, free: 21.56 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.4636, allocations: 0 / 0.7202 GB, free: 21.56 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.4636, allocations: 5.188 kB / 0.7203 GB, free: 21.55 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001085/0.4637, allocations: 37.86 kB / 0.7203 GB, free: 21.55 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002419/0.4639, allocations: 213.6 kB / 0.7205 GB, free: 21.31 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.308e-05/0.464, allocations: 43.36 kB / 0.7205 GB, free: 21.28 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.946e-05/0.4641, allocations: 28.66 kB / 0.7206 GB, free: 21.27 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.4641, allocations: 0 / 0.7206 GB, free: 21.27 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.386e-05/0.4641, allocations: 32 kB / 0.7206 GB, free: 21.23 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.4641, allocations: 5.469 kB / 0.7206 GB, free: 21.22 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0002314/0.4643, allocations: 87.25 kB / 0.7207 GB, free: 21.18 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.956e-05/0.4643, allocations: 52.06 kB / 0.7207 GB, free: 21.12 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.188e-05/0.4644, allocations: 101.6 kB / 0.7208 GB, free: 21.02 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 6.633e-06/0.4644, allocations: 26.41 kB / 0.7209 GB, free: 20.98 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 1.954e-05/0.4644, allocations: 90.28 kB / 0.7209 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.531e-05/0.4644, allocations: 5.25 kB / 0.7209 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.227e-05/0.4644, allocations: 17.7 kB / 0.721 GB, free: 20.87 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 2.849e-05/0.4645, allocations: 313.1 kB / 0.7213 GB, free: 20.56 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.596e-05/0.4645, allocations: 18.75 kB / 0.7213 GB, free: 20.55 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.909e-05/0.4646, allocations: 19.27 kB / 0.7213 GB, free: 20.55 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.855e-05/0.4646, allocations: 43.12 kB / 0.7213 GB, free: 20.54 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4647, allocations: 4.547 kB / 0.7213 GB, free: 20.53 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001088/0.4648, allocations: 73.25 kB / 0.7214 GB, free: 20.49 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.4648, allocations: 8.219 kB / 0.7214 GB, free: 20.49 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.4648, allocations: 1.641 kB / 0.7214 GB, free: 20.49 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.4648, allocations: 0 / 0.7214 GB, free: 20.49 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.847e-05/0.4649, allocations: 12.98 kB / 0.7214 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.381e-06/0.4649, allocations: 2.016 kB / 0.7214 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.665e-05/0.4649, allocations: 9.953 kB / 0.7214 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-06/0.4649, allocations: 1.094 kB / 0.7214 GB, free: 20.48 MB / 0.6355 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 3.753e-05/0.4649, allocations: 117.8 kB / 0.7216 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.169e-05/0.4649, allocations: 1.781 kB / 0.7216 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.733e-05/0.465, allocations: 7.875 kB / 0.7216 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.465, allocations: 1.312 kB / 0.7216 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.465, allocations: 0.75 kB / 0.7216 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.465, allocations: 5.172 kB / 0.7216 GB, free: 20.35 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.37e-05/0.465, allocations: 136.3 kB / 0.7217 GB, free: 20.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.465, allocations: 1.156 kB / 0.7217 GB, free: 20.18 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.054e-05/0.4651, allocations: 12.72 kB / 0.7217 GB, free: 20.18 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.4651, allocations: 1.219 kB / 0.7217 GB, free: 20.18 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.4651, allocations: 8.609 kB / 0.7217 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4651, allocations: 1.688 kB / 0.7217 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.41e-07/0.4651, allocations: 0 / 0.7217 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001208/0.4652, allocations: 162.4 kB / 0.7219 GB, free: 20.04 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.48e-06/0.4652, allocations: 14.03 kB / 0.7219 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.238e-06/0.4652, allocations: 1 kB / 0.7219 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.823e-05/0.4653, allocations: 5.703 kB / 0.7219 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.4653, allocations: 4.891 kB / 0.7219 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.4653, allocations: 5.688 kB / 0.7219 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 1.686e-05/0.4653, allocations: 85.47 kB / 0.722 GB, free: 19.94 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.4653, allocations: 0 / 0.722 GB, free: 19.94 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001432/0.4655, allocations: 3.312 kB / 0.722 GB, free: 19.94 MB / 0.6355 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.0002079/0.4657, allocations: 0.6992 MB / 0.7227 GB, free: 19.27 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001243/0.4658, allocations: 46.52 kB / 0.7227 GB, free: 19.26 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.4658, allocations: 0 / 0.7227 GB, free: 19.26 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.8e-05/0.4658, allocations: 22.7 kB / 0.7227 GB, free: 19.25 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.466, allocations: 11.05 kB / 0.7228 GB, free: 19.25 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002791/0.4663, allocations: 134.6 kB / 0.7229 GB, free: 19.1 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.999e-05/0.4664, allocations: 60.38 kB / 0.7229 GB, free: 19.03 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.242e-05/0.4664, allocations: 5.375 kB / 0.7229 GB, free: 19.03 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.422e-05/0.4664, allocations: 20.86 kB / 0.723 GB, free: 19.01 MB / 0.6355 GB Notification: Performance of SimCode: time 3.11e-07/0.4664, allocations: 0 / 0.723 GB, free: 19.01 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01628/0.4827, allocations: 2.106 MB / 0.725 GB, free: 18.11 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.499/6.981, allocations: 20.39 kB / 0.725 GB, free: 18.11 MB / 0.6355 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.63753053219989] Failed to read output from testmodel.py, exit status != 0: 7.059436507057399 7.071210176 6.606199769 Calling exit ...