Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0007594/0.0007594, 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.0007632/0.0007632, allocations: 170.3 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.8946/0.8946, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 0.7182/0.7182, allocations: 154.6 MB / 413.8 MB, free: 0.793 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.Logical.Validation.Latch,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.494e-06/2.494e-06, allocations: 0 / 0.6181 GB, free: 13.65 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.667e-05/1.917e-05, allocations: 6.281 kB / 0.6181 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001501/0.00152, allocations: 0.7334 MB / 0.6188 GB, free: 12.91 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001203/0.002723, allocations: 1.275 MB / 0.6201 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.066e-05/0.002784, allocations: 4 kB / 0.6201 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.459e-05/0.002818, allocations: 7.875 kB / 0.6201 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.397e-05/0.002892, allocations: 23.78 kB / 0.6201 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005599/0.003452, allocations: 263.6 kB / 0.6204 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002363/0.003689, allocations: 255.6 kB / 0.6206 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.003812, allocations: 33.3 kB / 0.6206 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.003949, allocations: 155.7 kB / 0.6208 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.004064, allocations: 87.67 kB / 0.6209 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.999e-05/0.004094, allocations: 24 kB / 0.6209 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.811e-05/0.004162, allocations: 31.98 kB / 0.6209 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 3.327e-05/0.004196, allocations: 35.89 kB / 0.621 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 6.877e-05/0.004264, allocations: 83.84 kB / 0.621 GB, free: 10.65 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002345/0.004499, allocations: 279.2 kB / 0.6213 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.004502, allocations: 0 / 0.6213 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.242e-06/0.004503, allocations: 4 kB / 0.6213 GB, free: 10.37 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.004508, allocations: 0 / 0.6213 GB, free: 10.37 MB / 0.5886 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.0004668/0.004974, allocations: 441.1 kB / 0.6217 GB, free: 9.895 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.005011, allocations: 8.031 kB / 0.6217 GB, free: 9.887 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.079e-05/0.005042, allocations: 42.73 kB / 0.6218 GB, free: 9.836 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.905e-05/0.005091, allocations: 20.84 kB / 0.6218 GB, free: 9.816 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000334/0.005425, allocations: 169.8 kB / 0.622 GB, free: 9.625 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.005442, allocations: 16.36 kB / 0.622 GB, free: 9.609 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/0.005469, allocations: 24.38 kB / 0.622 GB, free: 9.586 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001797/0.005649, allocations: 126.1 kB / 0.6221 GB, free: 9.457 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.005657, allocations: 192 / 0.6221 GB, free: 9.457 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.005671, allocations: 12.36 kB / 0.6221 GB, free: 9.445 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.005677, allocations: 3.938 kB / 0.6221 GB, free: 9.441 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.223e-05/0.005769, allocations: 67.95 kB / 0.6222 GB, free: 9.375 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004395/0.006209, allocations: 383.4 kB / 0.6226 GB, free: 8.957 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/0.006332, allocations: 78.48 kB / 0.6226 GB, free: 8.871 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.897e-05/0.006371, allocations: 40.83 kB / 0.6227 GB, free: 8.828 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 6.813e-06/0.006378, allocations: 0 / 0.6227 GB, free: 8.828 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002168/0.006595, allocations: 134.5 kB / 0.6228 GB, free: 8.688 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.006596, allocations: 0 / 0.6228 GB, free: 8.688 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16): time 0.0003169/0.006913, allocations: 249.4 kB / 0.623 GB, free: 8.438 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.00695, allocations: 55.41 kB / 0.6231 GB, free: 8.371 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.91e-05/0.007029, allocations: 141.7 kB / 0.6232 GB, free: 8.223 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.007052, allocations: 37.64 kB / 0.6233 GB, free: 8.18 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.609e-05/0.007108, allocations: 116.6 kB / 0.6234 GB, free: 8.062 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.007128, allocations: 35.72 kB / 0.6234 GB, free: 8.027 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-05/0.007194, allocations: 73.67 kB / 0.6235 GB, free: 7.949 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.204e-05/0.007266, allocations: 318.8 kB / 0.6238 GB, free: 7.629 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.007382, allocations: 131.3 kB / 0.6239 GB, free: 7.488 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.007511, allocations: 187.1 kB / 0.6241 GB, free: 7.266 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.007677, allocations: 218.9 kB / 0.6243 GB, free: 7.012 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.00768, allocations: 0 / 0.6243 GB, free: 7.012 MB / 0.5886 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003177/0.007997, allocations: 370.3 kB / 0.6247 GB, free: 6.621 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.994e-05/0.008037, allocations: 71.33 kB / 0.6247 GB, free: 6.539 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.008044, allocations: 4 kB / 0.6247 GB, free: 6.535 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.008057, allocations: 4 kB / 0.6247 GB, free: 6.531 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.886e-05/0.008076, allocations: 11.94 kB / 0.6247 GB, free: 6.52 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.008082, allocations: 8.25 kB / 0.6247 GB, free: 6.512 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.008253, allocations: 55.89 kB / 0.6248 GB, free: 6.457 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.008271, allocations: 15.98 kB / 0.6248 GB, free: 6.441 MB / 0.5886 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 9.11e-05/0.008362, allocations: 142.7 kB / 0.625 GB, free: 6.293 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.467e-05/0.008377, allocations: 15.91 kB / 0.625 GB, free: 6.277 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.969e-05/0.008406, allocations: 16.72 kB / 0.625 GB, free: 6.258 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.008409, allocations: 4 kB / 0.625 GB, free: 6.254 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.008413, allocations: 0 / 0.625 GB, free: 6.254 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.008417, allocations: 0 / 0.625 GB, free: 6.254 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003167/0.008733, allocations: 453.4 kB / 0.6254 GB, free: 5.762 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.008735, allocations: 0 / 0.6254 GB, free: 5.762 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.827e-06/0.008744, allocations: 8 kB / 0.6254 GB, free: 5.754 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.008746, allocations: 0 / 0.6254 GB, free: 5.754 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.008757, allocations: 7.984 kB / 0.6254 GB, free: 5.746 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.008759, allocations: 3.938 kB / 0.6254 GB, free: 5.742 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.00876, allocations: 0 / 0.6254 GB, free: 5.742 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000183/0.008943, allocations: 309.9 kB / 0.6257 GB, free: 5.426 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.062e-05/0.008954, allocations: 11.91 kB / 0.6257 GB, free: 5.414 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.008968, allocations: 7.984 kB / 0.6258 GB, free: 5.406 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.689e-05/0.009005, allocations: 4 kB / 0.6258 GB, free: 5.402 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.168e-05/0.009037, allocations: 11.97 kB / 0.6258 GB, free: 5.391 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.009053, allocations: 12 kB / 0.6258 GB, free: 5.379 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.792e-05/0.009091, allocations: 95.27 kB / 0.6259 GB, free: 5.285 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7e-08/0.009091, allocations: 0 / 0.6259 GB, free: 5.285 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002066/0.009298, allocations: 51.92 kB / 0.6259 GB, free: 5.234 MB / 0.5886 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.000421/0.009719, allocations: 0.841 MB / 0.6267 GB, free: 4.371 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002837/0.01, allocations: 326 kB / 0.6271 GB, free: 4.016 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.01, allocations: 0 / 0.6271 GB, free: 4.016 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.834e-05/0.01006, allocations: 55.97 kB / 0.6271 GB, free: 3.961 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.01028, allocations: 21.8 kB / 0.6271 GB, free: 3.941 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.01184, allocations: 2.297 MB / 0.6294 GB, free: 1.453 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.017e-05/0.0119, allocations: 102.7 kB / 0.6295 GB, free: 1.336 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.298e-05/0.01193, allocations: 13.14 kB / 0.6295 GB, free: 1.324 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.352e-05/0.01197, allocations: 40.48 kB / 0.6295 GB, free: 1.285 MB / 0.5886 GB Notification: Performance of SimCode: time 6.21e-07/0.01198, allocations: 0 / 0.6295 GB, free: 1.285 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0181/0.03008, allocations: 4.47 MB / 0.6339 GB, free: 12.99 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.671/6.702, allocations: 15.53 kB / 0.6339 GB, free: 12.99 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_OBC_CDL_Logical_Validation_Latch.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.32012244593352] Failed to read output from testmodel.py, exit status != 0: 6.782339675351977 6.791024624 6.784807447 Calling exit ...