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.001261/0.001261, allocations: 105.5 kB / 18.95 MB, free: 1.184 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.001185/0.001185, allocations: 209.2 kB / 22.25 MB, free: 3.586 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.9623/0.9623, allocations: 230.6 MB / 256 MB, free: 9.652 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.8128/0.8128, allocations: 203.8 MB / 0.5042 GB, free: 10.44 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.001435/0.001435, allocations: 79.09 kB / 0.7182 GB, free: 4.043 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4718/0.4732, allocations: 102 MB / 0.8178 GB, free: 1.051 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001402/0.4746, allocations: 0.744 MB / 0.8185 GB, free: 0.5859 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.4757, allocations: 1.268 MB / 0.8198 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.091e-05/0.4757, allocations: 3.938 kB / 0.8198 GB, free: 15.67 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.033e-05/0.4758, allocations: 17.28 kB / 0.8198 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.527e-05/0.4758, allocations: 21.41 kB / 0.8198 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004707/0.4763, allocations: 251.9 kB / 0.82 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002238/0.4765, allocations: 261.1 kB / 0.8203 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.4766, allocations: 48.34 kB / 0.8203 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.539e-05/0.4767, allocations: 100.7 kB / 0.8204 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001183/0.4768, allocations: 90.03 kB / 0.8205 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.4769, allocations: 22.75 kB / 0.8205 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.4769, allocations: 42.81 kB / 0.8206 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.695e-05/0.477, allocations: 34.42 kB / 0.8206 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.165e-05/0.477, allocations: 86.88 kB / 0.8207 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002596/0.4773, allocations: 246.6 kB / 0.8209 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.4773, allocations: 0 / 0.8209 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4773, allocations: 0 / 0.8209 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.4773, allocations: 0 / 0.8209 GB, free: 15.16 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.0004515/0.4777, allocations: 424.4 kB / 0.8213 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.4778, allocations: 9.531 kB / 0.8214 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.283e-05/0.4778, allocations: 50.12 kB / 0.8214 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.357e-05/0.4779, allocations: 21.98 kB / 0.8214 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.4782, allocations: 184.5 kB / 0.8216 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.4782, allocations: 15.19 kB / 0.8216 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.747e-05/0.4782, allocations: 23.12 kB / 0.8216 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.4784, allocations: 135.4 kB / 0.8218 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.4784, allocations: 0 / 0.8218 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.4784, allocations: 9.844 kB / 0.8218 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.4784, allocations: 7.703 kB / 0.8218 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.125e-05/0.4785, allocations: 69.61 kB / 0.8218 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003931/0.4789, allocations: 379.1 kB / 0.8222 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.4791, allocations: 81.22 kB / 0.8223 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.287e-05/0.4791, allocations: 31.89 kB / 0.8223 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.4791, allocations: 4.906 kB / 0.8223 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.4793, allocations: 133.7 kB / 0.8224 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=16): time 1.203e-06/0.4793, allocations: 3.938 kB / 0.8224 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16): time 0.0003458/0.4797, allocations: 245.8 kB / 0.8227 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.4797, allocations: 58.17 kB / 0.8227 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.48e-05/0.4798, allocations: 142.1 kB / 0.8229 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.4798, allocations: 34.14 kB / 0.8229 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.808e-05/0.4799, allocations: 108 kB / 0.823 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.4799, allocations: 34.92 kB / 0.823 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-05/0.48, allocations: 73.16 kB / 0.8231 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.773e-05/0.4801, allocations: 321.6 kB / 0.8234 GB, free: 13.22 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.4802, allocations: 127 kB / 0.8235 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001562/0.4804, allocations: 191.8 kB / 0.8237 GB, free: 12.97 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001774/0.4806, allocations: 214.4 kB / 0.8239 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.4806, allocations: 4 kB / 0.8239 GB, free: 12.78 MB / 0.6198 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003761/0.4809, allocations: 389.8 kB / 0.8243 GB, free: 12.53 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.144e-05/0.481, allocations: 67.84 kB / 0.8244 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.481, allocations: 2.406 kB / 0.8244 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.481, allocations: 3.438 kB / 0.8244 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.987e-05/0.481, allocations: 10.38 kB / 0.8244 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.481, allocations: 3 kB / 0.8244 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.4812, allocations: 56.31 kB / 0.8244 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.4812, allocations: 19.47 kB / 0.8245 GB, free: 12.45 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 9.584e-05/0.4813, allocations: 140.6 kB / 0.8246 GB, free: 12.32 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.715e-05/0.4814, allocations: 15.2 kB / 0.8246 GB, free: 12.31 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.176e-05/0.4814, allocations: 12.77 kB / 0.8246 GB, free: 12.3 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.4814, allocations: 1.125 kB / 0.8246 GB, free: 12.3 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4814, allocations: 0 / 0.8246 GB, free: 12.3 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4814, allocations: 2.547 kB / 0.8246 GB, free: 12.3 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003542/0.4818, allocations: 455.1 kB / 0.8251 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.4818, allocations: 4 kB / 0.8251 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.195e-06/0.4818, allocations: 4.297 kB / 0.8251 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4818, allocations: 0 / 0.8251 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.4818, allocations: 8.5 kB / 0.8251 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.4818, allocations: 1.812 kB / 0.8251 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4818, allocations: 0 / 0.8251 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002096/0.482, allocations: 289 kB / 0.8254 GB, free: 11.78 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.068e-05/0.482, allocations: 12.39 kB / 0.8254 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.482, allocations: 4.547 kB / 0.8254 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.907e-05/0.4821, allocations: 7.344 kB / 0.8254 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.64e-05/0.4821, allocations: 15.39 kB / 0.8254 GB, free: 11.76 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.4821, allocations: 17.7 kB / 0.8254 GB, free: 11.75 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.764e-05/0.4821, allocations: 94.44 kB / 0.8255 GB, free: 11.68 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.4821, allocations: 3.938 kB / 0.8255 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000212/0.4824, allocations: 47.55 kB / 0.8255 GB, free: 11.66 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.0004383/0.4828, allocations: 0.832 MB / 0.8264 GB, free: 10.95 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003217/0.4831, allocations: 333 kB / 0.8267 GB, free: 10.71 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4831, allocations: 6.312 kB / 0.8267 GB, free: 10.7 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.713e-05/0.4832, allocations: 57.27 kB / 0.8267 GB, free: 10.69 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.4834, allocations: 25.67 kB / 0.8268 GB, free: 10.68 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.4852, allocations: 2.284 MB / 0.829 GB, free: 8.77 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.638e-05/0.4852, allocations: 99.16 kB / 0.8291 GB, free: 8.695 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.429e-05/0.4853, allocations: 12 kB / 0.8291 GB, free: 8.695 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.603e-05/0.4853, allocations: 37.52 kB / 0.8291 GB, free: 8.668 MB / 0.6198 GB Notification: Performance of SimCode: time 5.72e-07/0.4853, allocations: 0 / 0.8291 GB, free: 8.668 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01722/0.5025, allocations: 4.391 MB / 0.8334 GB, free: 7.562 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.655/7.157, allocations: 8.734 kB / 0.8334 GB, free: 7.559 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 & 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: 10.19132489990443] Failed to read output from testmodel.py, exit status != 0: 7.237026309128851 7.250633566 6.770131676 Calling exit ...