Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch.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.0007902/0.0007902, allocations: 109.9 kB / 18.93 MB, free: 1.27 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.001311/0.001311, allocations: 223.7 kB / 22.26 MB, free: 3.703 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.992/0.992, allocations: 230.6 MB / 256 MB, free: 9.801 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.8348/0.8348, allocations: 203.8 MB / 0.5042 GB, free: 10.73 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.Logical.Validation.Latch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Latch",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.0009276/0.0009276, allocations: 66.66 kB / 0.7182 GB, free: 4.336 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5666/0.5675, allocations: 102 MB / 0.8179 GB, free: 1.254 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001655/0.5692, allocations: 0.7601 MB / 0.8186 GB, free: 0.7695 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001268/0.5704, allocations: 1.285 MB / 0.8199 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.143e-05/0.5705, allocations: 4.125 kB / 0.8199 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.891e-05/0.5705, allocations: 14.34 kB / 0.8199 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.684e-05/0.5706, allocations: 10.22 kB / 0.8199 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006141/0.5712, allocations: 260 kB / 0.8202 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002667/0.5715, allocations: 256.3 kB / 0.8204 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.5716, allocations: 56.81 kB / 0.8205 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.5718, allocations: 99.67 kB / 0.8205 GB, free: 15.51 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.5719, allocations: 110.8 kB / 0.8207 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.403e-05/0.5719, allocations: 24.34 kB / 0.8207 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.314e-05/0.572, allocations: 42.45 kB / 0.8207 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.107e-05/0.5721, allocations: 39.33 kB / 0.8208 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.782e-05/0.5722, allocations: 93.69 kB / 0.8208 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.5725, allocations: 251.7 kB / 0.8211 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.5725, allocations: 0 / 0.8211 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.864e-06/0.5725, allocations: 0 / 0.8211 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.5725, allocations: 0 / 0.8211 GB, free: 15.29 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006967/0.5732, allocations: 422.8 kB / 0.8215 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.5732, allocations: 10.84 kB / 0.8215 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.707e-05/0.5733, allocations: 45.97 kB / 0.8215 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.853e-05/0.5733, allocations: 21.02 kB / 0.8216 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003633/0.5737, allocations: 183.2 kB / 0.8217 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.5737, allocations: 13.12 kB / 0.8217 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.5737, allocations: 24.73 kB / 0.8218 GB, free: 14.69 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.5739, allocations: 132.4 kB / 0.8219 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.5739, allocations: 0 / 0.8219 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.5739, allocations: 8.875 kB / 0.8219 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.574, allocations: 2.281 kB / 0.8219 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.521e-05/0.574, allocations: 76.44 kB / 0.822 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004784/0.5745, allocations: 424.6 kB / 0.8224 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.5747, allocations: 77.42 kB / 0.8225 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.605e-05/0.5747, allocations: 36.22 kB / 0.8225 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.004e-05/0.5747, allocations: 5.031 kB / 0.8225 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.575, allocations: 133.3 kB / 0.8226 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=16): time 1.382e-06/0.575, allocations: 1.25 kB / 0.8226 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16): time 0.0003418/0.5753, allocations: 245 kB / 0.8229 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.5754, allocations: 54.55 kB / 0.8229 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.481e-05/0.5755, allocations: 141.5 kB / 0.823 GB, free: 13.87 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.5755, allocations: 34.25 kB / 0.8231 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.881e-05/0.5756, allocations: 116 kB / 0.8232 GB, free: 13.72 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.339e-05/0.5756, allocations: 38.64 kB / 0.8232 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-05/0.5757, allocations: 73.02 kB / 0.8233 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.722e-05/0.5758, allocations: 321.6 kB / 0.8236 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.5759, allocations: 66.28 kB / 0.8237 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.576, allocations: 131.4 kB / 0.8238 GB, free: 13.22 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.5762, allocations: 213.5 kB / 0.824 GB, free: 13.04 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5762, allocations: 1.438 kB / 0.824 GB, free: 13.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003892/0.5766, allocations: 313.4 kB / 0.8243 GB, free: 12.87 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.4e-05/0.5767, allocations: 69.45 kB / 0.8244 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.5767, allocations: 2.375 kB / 0.8244 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.5767, allocations: 8.031 kB / 0.8244 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.274e-05/0.5767, allocations: 9.734 kB / 0.8244 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.5767, allocations: 3.672 kB / 0.8244 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.5769, allocations: 60.23 kB / 0.8244 GB, free: 12.78 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.5769, allocations: 19.05 kB / 0.8245 GB, free: 12.78 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,truCleFalIni.y,truCleTruIni.y,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp.y,falCleFalIni.y,falCleTruIni.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tru.y,fal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 2 * 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.0001021/0.577, allocations: 140.5 kB / 0.8246 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.577, allocations: 15.08 kB / 0.8246 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.857e-05/0.5771, allocations: 15.39 kB / 0.8246 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.5771, allocations: 2.312 kB / 0.8246 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.5771, allocations: 1.5 kB / 0.8246 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.5771, allocations: 1.094 kB / 0.8246 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003767/0.5775, allocations: 464.2 kB / 0.8251 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5775, allocations: 1.125 kB / 0.8251 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.085e-06/0.5775, allocations: 10.41 kB / 0.8251 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.5775, allocations: 1.156 kB / 0.8251 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.5775, allocations: 4.5 kB / 0.8251 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.5775, allocations: 1.219 kB / 0.8251 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.5775, allocations: 0.5625 kB / 0.8251 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002269/0.5777, allocations: 286.7 kB / 0.8254 GB, free: 12.1 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.348e-05/0.5777, allocations: 12.33 kB / 0.8254 GB, free: 12.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.5777, allocations: 3.203 kB / 0.8254 GB, free: 12.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.947e-05/0.5778, allocations: 12.02 kB / 0.8254 GB, free: 12.08 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.5778, allocations: 14.41 kB / 0.8254 GB, free: 12.08 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.5778, allocations: 17.91 kB / 0.8254 GB, free: 12.07 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.598e-05/0.5779, allocations: 94.34 kB / 0.8255 GB, free: 11.99 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5779, allocations: 0 / 0.8255 GB, free: 11.99 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002254/0.5781, allocations: 48.17 kB / 0.8256 GB, free: 11.98 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: 16 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,falCleTruIni.y,truCleTruIni.y,falCleFalIni.y,truCleFalIni.y,swiCleInp.y,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0005485/0.5787, allocations: 0.8304 MB / 0.8264 GB, free: 11.27 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003714/0.579, allocations: 268.7 kB / 0.8266 GB, free: 11.09 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.579, allocations: 0 / 0.8266 GB, free: 11.09 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.941e-05/0.5791, allocations: 60.7 kB / 0.8267 GB, free: 11.07 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.5794, allocations: 30.25 kB / 0.8267 GB, free: 11.06 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.5812, allocations: 2.042 MB / 0.8287 GB, free: 9.41 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.5815, allocations: 0.712 MB / 0.8294 GB, free: 8.711 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.613e-05/0.5816, allocations: 11.23 kB / 0.8294 GB, free: 8.711 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.763e-05/0.5816, allocations: 37.33 kB / 0.8294 GB, free: 8.684 MB / 0.6198 GB Notification: Performance of SimCode: time 6.01e-07/0.5816, allocations: 0 / 0.8294 GB, free: 8.684 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.6057, allocations: 3.814 MB / 0.8332 GB, free: 8.078 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.458/7.064, allocations: 7.906 kB / 0.8332 GB, free: 8.074 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Latch.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.157128376886249] Failed to read output from testmodel.py, exit status != 0: 7.141470806906 7.1530178620000004 6.578497019 Calling exit ...