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.0009186/0.0009186, 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.00114/0.00114, allocations: 162 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.8924/0.8924, allocations: 177.2 MB / 202.8 MB, free: 5.773 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.6867/0.6867, allocations: 155 MB / 414.2 MB, free: 16 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.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.0009628/0.0009628, allocations: 65.95 kB / 0.6187 GB, free: 12.15 MB / 0.5417 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.4577/0.4587, allocations: 102 MB / 0.7183 GB, free: 13.36 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001541/0.4602, allocations: 0.7247 MB / 0.719 GB, free: 12.63 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001371/0.4616, allocations: 1.279 MB / 0.7202 GB, free: 11.35 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.889e-05/0.4617, allocations: 4 kB / 0.7202 GB, free: 11.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 4.448e-05/0.4617, allocations: 11.86 kB / 0.7202 GB, free: 11.33 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.1e-05/0.4618, allocations: 11.86 kB / 0.7202 GB, free: 11.32 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000582/0.4624, allocations: 261.3 kB / 0.7205 GB, free: 11.07 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002242/0.4626, allocations: 263.4 kB / 0.7207 GB, free: 10.82 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.4627, allocations: 45.14 kB / 0.7208 GB, free: 10.77 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.4629, allocations: 147.8 kB / 0.7209 GB, free: 10.63 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.463, allocations: 87.67 kB / 0.721 GB, free: 10.54 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.164e-05/0.463, allocations: 28 kB / 0.721 GB, free: 10.52 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.428e-05/0.4631, allocations: 39.92 kB / 0.7211 GB, free: 10.48 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.777e-05/0.4631, allocations: 39.83 kB / 0.7211 GB, free: 10.44 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.541e-05/0.4632, allocations: 83.75 kB / 0.7212 GB, free: 10.36 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002583/0.4635, allocations: 295.1 kB / 0.7215 GB, free: 10.07 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.4635, allocations: 0 / 0.7215 GB, free: 10.07 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.974e-06/0.4635, allocations: 4 kB / 0.7215 GB, free: 10.06 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.244e-06/0.4635, allocations: 0 / 0.7215 GB, free: 10.06 MB / 0.6042 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.0005041/0.464, allocations: 433.2 kB / 0.7219 GB, free: 9.594 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.464, allocations: 9.469 kB / 0.7219 GB, free: 9.586 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.54e-05/0.4641, allocations: 42.73 kB / 0.7219 GB, free: 9.535 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.996e-05/0.4641, allocations: 20.88 kB / 0.722 GB, free: 9.516 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.4645, allocations: 174.5 kB / 0.7221 GB, free: 9.32 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.4645, allocations: 16.36 kB / 0.7221 GB, free: 9.305 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.756e-05/0.4645, allocations: 24.38 kB / 0.7222 GB, free: 9.281 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.4647, allocations: 131.2 kB / 0.7223 GB, free: 9.148 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.4647, allocations: 0 / 0.7223 GB, free: 9.148 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.4647, allocations: 15.88 kB / 0.7223 GB, free: 9.133 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.4647, allocations: 0 / 0.7223 GB, free: 9.133 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001125/0.4648, allocations: 71.89 kB / 0.7224 GB, free: 9.062 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004653/0.4653, allocations: 387.5 kB / 0.7228 GB, free: 8.641 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.4654, allocations: 78.53 kB / 0.7228 GB, free: 8.555 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.924e-05/0.4655, allocations: 32.84 kB / 0.7229 GB, free: 8.52 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.4655, allocations: 3.938 kB / 0.7229 GB, free: 8.516 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.4657, allocations: 145.8 kB / 0.723 GB, free: 8.363 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=16): time 1.573e-06/0.4657, allocations: 0 / 0.723 GB, free: 8.363 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16): time 0.0003356/0.466, allocations: 233.5 kB / 0.7232 GB, free: 8.129 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.4661, allocations: 55.41 kB / 0.7233 GB, free: 8.062 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.244e-05/0.4662, allocations: 149.7 kB / 0.7234 GB, free: 7.906 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.4662, allocations: 29.7 kB / 0.7234 GB, free: 7.871 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.188e-05/0.4663, allocations: 116.6 kB / 0.7236 GB, free: 7.754 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.4663, allocations: 35.69 kB / 0.7236 GB, free: 7.719 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.925e-05/0.4663, allocations: 77.67 kB / 0.7237 GB, free: 7.637 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.946e-05/0.4664, allocations: 318.8 kB / 0.724 GB, free: 7.316 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.4665, allocations: 127.4 kB / 0.7241 GB, free: 7.18 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.4667, allocations: 191.1 kB / 0.7243 GB, free: 6.953 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.4669, allocations: 221.9 kB / 0.7245 GB, free: 6.699 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4669, allocations: 0 / 0.7245 GB, free: 6.699 MB / 0.6042 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003355/0.4672, allocations: 368.1 kB / 0.7248 GB, free: 6.309 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.493e-05/0.4672, allocations: 67.39 kB / 0.7249 GB, free: 6.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.4672, allocations: 0 / 0.7249 GB, free: 6.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.4673, allocations: 4 kB / 0.7249 GB, free: 6.227 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2e-05/0.4673, allocations: 12.17 kB / 0.7249 GB, free: 6.215 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.4673, allocations: 8 kB / 0.7249 GB, free: 6.207 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003534/0.4676, allocations: 59.83 kB / 0.725 GB, free: 6.148 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.4677, allocations: 16 kB / 0.725 GB, free: 6.133 MB / 0.6042 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.0001041/0.4678, allocations: 134.8 kB / 0.7251 GB, free: 5.992 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.392e-05/0.4678, allocations: 15.89 kB / 0.7251 GB, free: 5.977 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.182e-05/0.4678, allocations: 12.78 kB / 0.7252 GB, free: 5.965 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.4678, allocations: 4 kB / 0.7252 GB, free: 5.961 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4678, allocations: 3.984 kB / 0.7252 GB, free: 5.957 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.4678, allocations: 0 / 0.7252 GB, free: 5.957 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003308/0.4682, allocations: 457.4 kB / 0.7256 GB, free: 5.461 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4682, allocations: 0 / 0.7256 GB, free: 5.461 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.363e-06/0.4682, allocations: 4 kB / 0.7256 GB, free: 5.457 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.4682, allocations: 3.984 kB / 0.7256 GB, free: 5.453 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.4682, allocations: 4 kB / 0.7256 GB, free: 5.449 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4682, allocations: 3.984 kB / 0.7256 GB, free: 5.445 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.4682, allocations: 11.88 kB / 0.7256 GB, free: 5.434 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001882/0.4684, allocations: 295.2 kB / 0.7259 GB, free: 5.129 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.119e-05/0.4684, allocations: 11.94 kB / 0.7259 GB, free: 5.117 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.4684, allocations: 8 kB / 0.7259 GB, free: 5.109 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.675e-05/0.4684, allocations: 0 / 0.7259 GB, free: 5.109 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.94e-05/0.4685, allocations: 15.95 kB / 0.7259 GB, free: 5.094 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.4685, allocations: 19.98 kB / 0.726 GB, free: 5.074 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.804e-05/0.4685, allocations: 98.52 kB / 0.7261 GB, free: 4.98 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6e-08/0.4685, allocations: 0 / 0.7261 GB, free: 4.98 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002056/0.4687, allocations: 51.89 kB / 0.7261 GB, free: 4.93 MB / 0.6042 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.0004355/0.4692, allocations: 0.8364 MB / 0.7269 GB, free: 4.07 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002988/0.4695, allocations: 326.1 kB / 0.7272 GB, free: 3.711 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.4695, allocations: 0 / 0.7272 GB, free: 3.711 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 6.532e-05/0.4695, allocations: 63.84 kB / 0.7273 GB, free: 3.648 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.4698, allocations: 20.47 kB / 0.7273 GB, free: 3.629 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.4715, allocations: 2.29 MB / 0.7295 GB, free: 1.145 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.268e-05/0.4715, allocations: 98.77 kB / 0.7296 GB, free: 1.031 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.328e-05/0.4716, allocations: 9.156 kB / 0.7296 GB, free: 1.023 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.607e-05/0.4716, allocations: 40.48 kB / 0.7297 GB, free: 0.9844 MB / 0.6042 GB Notification: Performance of SimCode: time 7.31e-07/0.4716, allocations: 0 / 0.7297 GB, free: 0.9844 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01846/0.4901, allocations: 4.515 MB / 0.7341 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.518/7.008, allocations: 3.234 kB / 0.7341 GB, free: 12.65 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: 9.609282591147348] Failed to read output from testmodel.py, exit status != 0: 7.08810307784006 7.0996065 6.632391409 Calling exit ...