Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.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.000717/0.000717, 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.0008536/0.0008536, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.931/0.931, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.7352/0.7352, allocations: 154.5 MB / 413.7 MB, free: 0.8086 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.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.637e-06/3.637e-06, allocations: 0 / 0.618 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.093e-05/3.457e-05, allocations: 8.922 kB / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002346/0.002381, allocations: 0.6711 MB / 0.6187 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.00181/0.00419, allocations: 1.287 MB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.516e-05/0.004256, allocations: 0 / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.879e-05/0.004294, allocations: 7.922 kB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 9.755e-05/0.004392, allocations: 23.8 kB / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007841/0.005176, allocations: 313.5 kB / 0.6203 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002505/0.005427, allocations: 259.5 kB / 0.6205 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.005544, allocations: 12.17 kB / 0.6206 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.005691, allocations: 135.8 kB / 0.6207 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001433/0.005834, allocations: 79.81 kB / 0.6208 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.714e-05/0.005871, allocations: 20 kB / 0.6208 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.308e-05/0.005944, allocations: 31.98 kB / 0.6208 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 3.312e-05/0.005977, allocations: 23.91 kB / 0.6208 GB, free: 10.83 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 7.71e-05/0.006054, allocations: 71.94 kB / 0.6209 GB, free: 10.76 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.006318, allocations: 263.4 kB / 0.6212 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.006321, allocations: 0 / 0.6212 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.773e-06/0.006323, allocations: 0 / 0.6212 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.006329, allocations: 0 / 0.6212 GB, free: 10.5 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005005/0.00683, allocations: 427.1 kB / 0.6216 GB, free: 10.04 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.006872, allocations: 13.47 kB / 0.6216 GB, free: 10.03 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.793e-05/0.0069, allocations: 30.75 kB / 0.6216 GB, free: 9.988 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.082e-05/0.006951, allocations: 16.89 kB / 0.6216 GB, free: 9.973 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.426e-05/0.007035, allocations: 125.6 kB / 0.6217 GB, free: 9.824 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.007058, allocations: 16.38 kB / 0.6218 GB, free: 9.809 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.48e-05/0.007083, allocations: 16.31 kB / 0.6218 GB, free: 9.793 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.007183, allocations: 54.23 kB / 0.6218 GB, free: 9.734 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.00719, allocations: 192 / 0.6218 GB, free: 9.734 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.007201, allocations: 4.359 kB / 0.6218 GB, free: 9.73 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.007207, allocations: 7.938 kB / 0.6218 GB, free: 9.723 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.873e-05/0.007246, allocations: 15.98 kB / 0.6219 GB, free: 9.707 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004156/0.007661, allocations: 343.8 kB / 0.6222 GB, free: 9.328 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 5.717e-05/0.007719, allocations: 34.5 kB / 0.6222 GB, free: 9.285 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.624e-05/0.007745, allocations: 16.86 kB / 0.6222 GB, free: 9.266 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.007754, allocations: 4 kB / 0.6222 GB, free: 9.262 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001735/0.007927, allocations: 103.4 kB / 0.6223 GB, free: 9.148 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.007929, allocations: 3.938 kB / 0.6223 GB, free: 9.145 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0002437/0.008172, allocations: 137.5 kB / 0.6225 GB, free: 9.004 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.008211, allocations: 55.41 kB / 0.6225 GB, free: 8.938 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.478e-05/0.008296, allocations: 140.4 kB / 0.6227 GB, free: 8.793 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.008324, allocations: 33.7 kB / 0.6227 GB, free: 8.754 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.932e-05/0.008383, allocations: 108.1 kB / 0.6228 GB, free: 8.645 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.008399, allocations: 15.91 kB / 0.6228 GB, free: 8.629 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-05/0.008475, allocations: 65.67 kB / 0.6229 GB, free: 8.559 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0003705/0.008846, allocations: 326.8 kB / 0.6232 GB, free: 8.23 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.009018, allocations: 181 kB / 0.6234 GB, free: 8.035 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.00919, allocations: 229.1 kB / 0.6236 GB, free: 7.773 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001881/0.009378, allocations: 235 kB / 0.6238 GB, free: 7.504 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.009382, allocations: 3.938 kB / 0.6238 GB, free: 7.5 MB / 0.5886 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004309/0.009813, allocations: 475.6 kB / 0.6242 GB, free: 6.992 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.784e-05/0.009871, allocations: 97.09 kB / 0.6243 GB, free: 6.879 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.009878, allocations: 4 kB / 0.6243 GB, free: 6.875 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.009891, allocations: 0 / 0.6243 GB, free: 6.875 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.045e-05/0.009911, allocations: 11.92 kB / 0.6244 GB, free: 6.863 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.009919, allocations: 4 kB / 0.6244 GB, free: 6.859 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.01018, allocations: 83.98 kB / 0.6244 GB, free: 6.777 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.618e-05/0.01021, allocations: 19.98 kB / 0.6245 GB, free: 6.758 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.412e-05/0.0103, allocations: 138.2 kB / 0.6246 GB, free: 6.617 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.169e-05/0.01031, allocations: 7.953 kB / 0.6246 GB, free: 6.609 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.456e-05/0.01034, allocations: 12.42 kB / 0.6246 GB, free: 6.594 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.01034, allocations: 0 / 0.6246 GB, free: 6.594 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.01035, allocations: 3.938 kB / 0.6246 GB, free: 6.59 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.01035, allocations: 4 kB / 0.6246 GB, free: 6.586 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.01046, allocations: 160.6 kB / 0.6248 GB, free: 6.387 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.01046, allocations: 0 / 0.6248 GB, free: 6.387 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.03e-05/0.01047, allocations: 8 kB / 0.6248 GB, free: 6.379 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.01047, allocations: 0 / 0.6248 GB, free: 6.379 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.01048, allocations: 3.984 kB / 0.6248 GB, free: 6.375 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.01048, allocations: 4 kB / 0.6248 GB, free: 6.371 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.01048, allocations: 384 / 0.6248 GB, free: 6.371 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001456/0.01063, allocations: 140.9 kB / 0.6249 GB, free: 6.215 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.635e-05/0.01065, allocations: 7.953 kB / 0.6249 GB, free: 6.207 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.01066, allocations: 7.984 kB / 0.6249 GB, free: 6.199 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.668e-05/0.01068, allocations: 4 kB / 0.6249 GB, free: 6.195 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.532e-05/0.01071, allocations: 11.98 kB / 0.625 GB, free: 6.184 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.01072, allocations: 4 kB / 0.625 GB, free: 6.18 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.94e-05/0.01076, allocations: 95.27 kB / 0.625 GB, free: 6.086 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.01076, allocations: 0 / 0.625 GB, free: 6.086 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000175/0.01094, allocations: 47.94 kB / 0.6251 GB, free: 6.039 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003572/0.01129, allocations: 0.6825 MB / 0.6258 GB, free: 5.328 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003451/0.01164, allocations: 411.4 kB / 0.6262 GB, free: 4.871 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01164, allocations: 0 / 0.6262 GB, free: 4.871 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 4.102e-05/0.01168, allocations: 39.91 kB / 0.6262 GB, free: 4.832 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002001/0.01188, allocations: 34.03 kB / 0.6262 GB, free: 4.805 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.01373, allocations: 2.422 MB / 0.6286 GB, free: 2.168 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.098e-05/0.01378, allocations: 80.02 kB / 0.6287 GB, free: 2.066 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.236e-05/0.01381, allocations: 8.484 kB / 0.6287 GB, free: 2.055 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.393e-05/0.01387, allocations: 32.48 kB / 0.6287 GB, free: 2.023 MB / 0.5886 GB Notification: Performance of SimCode: time 8.11e-07/0.01387, allocations: 0 / 0.6287 GB, free: 2.023 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.03269, allocations: 4.796 MB / 0.6334 GB, free: 13.43 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.75/6.783, allocations: 0 / 0.6334 GB, free: 13.43 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Switch.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.713636115193367] Failed to read output from testmodel.py, exit status != 0: 6.8664964530617 6.875825348 6.867640761 Calling exit ...