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.0009126/0.0009126, 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.001586/0.001586, allocations: 165.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.9083/0.9083, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.7155/0.7155, allocations: 154.6 MB / 413.7 MB, free: 0.8359 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.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: Performance of FrontEnd - loaded program: time 2.635e-06/2.635e-06, allocations: 0 / 0.6181 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.2e-05/2.464e-05, allocations: 2.781 kB / 0.6181 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001509/0.001533, allocations: 0.7341 MB / 0.6188 GB, free: 12.96 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.002913, allocations: 1.275 MB / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.569e-05/0.002969, allocations: 0 / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.926e-05/0.003008, allocations: 15.8 kB / 0.62 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.267e-05/0.003081, allocations: 15.88 kB / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005756/0.003656, allocations: 250.7 kB / 0.6203 GB, free: 11.4 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0005343/0.004191, allocations: 251.6 kB / 0.6205 GB, free: 11.16 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.004351, allocations: 45.27 kB / 0.6206 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.004493, allocations: 143.8 kB / 0.6207 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.004616, allocations: 75.8 kB / 0.6208 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.004648, allocations: 28 kB / 0.6208 GB, free: 10.87 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.296e-05/0.004721, allocations: 47.91 kB / 0.6209 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 3.427e-05/0.004755, allocations: 31.89 kB / 0.6209 GB, free: 10.79 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 7.842e-05/0.004834, allocations: 79.86 kB / 0.621 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002785/0.005112, allocations: 291.2 kB / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.005116, allocations: 0 / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.002e-06/0.005117, allocations: 0 / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.005121, allocations: 0 / 0.6212 GB, free: 10.43 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.000495/0.005616, allocations: 421.2 kB / 0.6216 GB, free: 9.969 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.005662, allocations: 9.469 kB / 0.6217 GB, free: 9.961 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.679e-05/0.005698, allocations: 46.73 kB / 0.6217 GB, free: 9.906 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.321e-05/0.005752, allocations: 28.83 kB / 0.6217 GB, free: 9.879 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003682/0.00612, allocations: 175.2 kB / 0.6219 GB, free: 9.684 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.006142, allocations: 12.38 kB / 0.6219 GB, free: 9.672 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.996e-05/0.006172, allocations: 20.38 kB / 0.6219 GB, free: 9.652 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/0.006374, allocations: 130.1 kB / 0.622 GB, free: 9.52 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.006383, allocations: 4.172 kB / 0.6221 GB, free: 9.516 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.006398, allocations: 8.375 kB / 0.6221 GB, free: 9.508 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.006406, allocations: 7.938 kB / 0.6221 GB, free: 9.5 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.6e-05/0.006502, allocations: 71.89 kB / 0.6221 GB, free: 9.43 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000454/0.006956, allocations: 379.5 kB / 0.6225 GB, free: 9.016 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.007094, allocations: 78.53 kB / 0.6226 GB, free: 8.93 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.423e-05/0.007138, allocations: 36.84 kB / 0.6226 GB, free: 8.891 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-06/0.007146, allocations: 0 / 0.6226 GB, free: 8.891 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.007373, allocations: 131.2 kB / 0.6227 GB, free: 8.75 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/0.007374, allocations: 0 / 0.6227 GB, free: 8.75 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16): time 0.0003369/0.007711, allocations: 245.4 kB / 0.623 GB, free: 8.504 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.007753, allocations: 59.41 kB / 0.623 GB, free: 8.434 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.41e-05/0.007847, allocations: 157.1 kB / 0.6232 GB, free: 8.273 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.007871, allocations: 33.7 kB / 0.6232 GB, free: 8.234 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.357e-05/0.007935, allocations: 116.6 kB / 0.6233 GB, free: 8.117 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.007954, allocations: 31.8 kB / 0.6233 GB, free: 8.086 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.488e-05/0.008028, allocations: 73.61 kB / 0.6234 GB, free: 8.008 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.22e-05/0.008111, allocations: 318.8 kB / 0.6237 GB, free: 7.688 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.00825, allocations: 127.4 kB / 0.6238 GB, free: 7.551 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.008394, allocations: 192.6 kB / 0.624 GB, free: 7.324 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.008568, allocations: 217.4 kB / 0.6242 GB, free: 7.074 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.00857, allocations: 0 / 0.6242 GB, free: 7.074 MB / 0.5886 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003394/0.00891, allocations: 372.2 kB / 0.6246 GB, free: 6.68 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.627e-05/0.008956, allocations: 75.33 kB / 0.6247 GB, free: 6.594 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.008962, allocations: 0 / 0.6247 GB, free: 6.594 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.008977, allocations: 4 kB / 0.6247 GB, free: 6.59 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.149e-05/0.008998, allocations: 11.92 kB / 0.6247 GB, free: 6.578 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.009007, allocations: 4 kB / 0.6247 GB, free: 6.574 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.0092, allocations: 59.98 kB / 0.6247 GB, free: 6.516 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.009219, allocations: 16 kB / 0.6248 GB, free: 6.5 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.277e-05/0.009312, allocations: 141.6 kB / 0.6249 GB, free: 6.355 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.009327, allocations: 15.91 kB / 0.6249 GB, free: 6.34 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.483e-05/0.009362, allocations: 16.7 kB / 0.6249 GB, free: 6.316 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.009365, allocations: 4 kB / 0.6249 GB, free: 6.312 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.00937, allocations: 0 / 0.6249 GB, free: 6.312 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.009373, allocations: 0 / 0.6249 GB, free: 6.312 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00034/0.009713, allocations: 449.4 kB / 0.6254 GB, free: 5.824 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.009716, allocations: 8 kB / 0.6254 GB, free: 5.816 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.021e-05/0.009726, allocations: 7.984 kB / 0.6254 GB, free: 5.809 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.009729, allocations: 0 / 0.6254 GB, free: 5.809 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.009741, allocations: 8 kB / 0.6254 GB, free: 5.801 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.009742, allocations: 0 / 0.6254 GB, free: 5.801 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.009743, allocations: 0 / 0.6254 GB, free: 5.801 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.009953, allocations: 298.5 kB / 0.6257 GB, free: 5.496 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.251e-05/0.009966, allocations: 19.83 kB / 0.6257 GB, free: 5.477 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.009983, allocations: 4 kB / 0.6257 GB, free: 5.473 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.015e-05/0.01002, allocations: 0 / 0.6257 GB, free: 5.473 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/0.01007, allocations: 19.91 kB / 0.6257 GB, free: 5.453 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.01009, allocations: 15.98 kB / 0.6257 GB, free: 5.438 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 4.319e-05/0.01013, allocations: 99.27 kB / 0.6258 GB, free: 5.34 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.01013, allocations: 0 / 0.6258 GB, free: 5.34 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002157/0.01035, allocations: 47.94 kB / 0.6259 GB, free: 5.293 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.0004657/0.01081, allocations: 0.8255 MB / 0.6267 GB, free: 4.441 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003232/0.01114, allocations: 334.4 kB / 0.627 GB, free: 4.078 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.01114, allocations: 64 / 0.627 GB, free: 4.078 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.39e-05/0.0112, allocations: 63.91 kB / 0.627 GB, free: 4.016 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000236/0.01144, allocations: 22.16 kB / 0.6271 GB, free: 3.996 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.0135, allocations: 2.285 MB / 0.6293 GB, free: 1.52 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.402e-05/0.01356, allocations: 98.78 kB / 0.6294 GB, free: 1.406 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.405e-05/0.0136, allocations: 13.14 kB / 0.6294 GB, free: 1.395 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.113e-05/0.01365, allocations: 36.48 kB / 0.6294 GB, free: 1.359 MB / 0.5886 GB Notification: Performance of SimCode: time 7.32e-07/0.01365, allocations: 0 / 0.6294 GB, free: 1.359 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02087/0.03452, allocations: 4.499 MB / 0.6338 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.997/7.031, allocations: 12.12 kB / 0.6338 GB, free: 13.04 MB / 0.6042 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Latch_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.873796500265598] Failed to read output from testmodel.py, exit status != 0: 7.11434770654887 7.123508725 7.116504037 Calling exit ...