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.000821/0.000821, 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.0009766/0.0009766, allocations: 162 kB / 22.43 MB, free: 2.145 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.8689/0.8689, allocations: 177.2 MB / 202.8 MB, free: 5.777 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.7101/0.7101, allocations: 155 MB / 414.2 MB, free: 468 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.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: 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.0009362/0.0009362, allocations: 67.22 kB / 0.6187 GB, free: 13.1 MB / 0.5886 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.4327/0.4337, allocations: 102 MB / 0.7183 GB, free: 23.01 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001378/0.435, allocations: 0.6712 MB / 0.7189 GB, free: 22.6 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001206/0.4362, allocations: 1.298 MB / 0.7202 GB, free: 21.67 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.333e-05/0.4363, allocations: 1.188 kB / 0.7202 GB, free: 21.67 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 2.981e-05/0.4363, allocations: 8.484 kB / 0.7202 GB, free: 21.66 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 7.298e-05/0.4364, allocations: 17.42 kB / 0.7202 GB, free: 21.65 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006792/0.4371, allocations: 310.4 kB / 0.7205 GB, free: 21.5 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0002525/0.4373, allocations: 260.4 kB / 0.7208 GB, free: 21.38 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.4374, allocations: 12.45 kB / 0.7208 GB, free: 21.38 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.4376, allocations: 142.6 kB / 0.7209 GB, free: 21.31 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.4377, allocations: 78.42 kB / 0.721 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/0.4378, allocations: 22.38 kB / 0.721 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 7.559e-05/0.4378, allocations: 35.25 kB / 0.721 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 2.534e-05/0.4379, allocations: 15.52 kB / 0.721 GB, free: 21.28 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 8.348e-05/0.438, allocations: 81.12 kB / 0.7211 GB, free: 21.24 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0002789/0.4382, allocations: 278.9 kB / 0.7214 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.4382, allocations: 0 / 0.7214 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.164e-06/0.4382, allocations: 0 / 0.7214 GB, free: 21.13 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.4382, allocations: 5.125 kB / 0.7214 GB, free: 21.12 MB / 0.6355 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.0004074/0.4387, allocations: 417 kB / 0.7218 GB, free: 20.74 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.4387, allocations: 10.44 kB / 0.7218 GB, free: 20.74 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.391e-05/0.4387, allocations: 42.42 kB / 0.7218 GB, free: 20.69 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.323e-05/0.4388, allocations: 15.33 kB / 0.7219 GB, free: 20.69 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.258e-05/0.4388, allocations: 116.4 kB / 0.722 GB, free: 20.55 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.4389, allocations: 8.094 kB / 0.722 GB, free: 20.55 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.006e-05/0.4389, allocations: 18.02 kB / 0.722 GB, free: 20.55 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.439, allocations: 64.98 kB / 0.7221 GB, free: 20.5 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.439, allocations: 4 kB / 0.7221 GB, free: 20.5 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.439, allocations: 1.797 kB / 0.7221 GB, free: 20.5 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.439, allocations: 1.375 kB / 0.7221 GB, free: 20.5 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.093e-05/0.4391, allocations: 17.06 kB / 0.7221 GB, free: 20.5 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004106/0.4395, allocations: 354.9 kB / 0.7224 GB, free: 20.2 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.451e-05/0.4395, allocations: 32.22 kB / 0.7224 GB, free: 20.17 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.497e-05/0.4396, allocations: 18.14 kB / 0.7225 GB, free: 20.16 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 9.818e-06/0.4396, allocations: 1.156 kB / 0.7225 GB, free: 20.16 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.4397, allocations: 105.4 kB / 0.7226 GB, free: 20.09 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.4397, allocations: 0 / 0.7226 GB, free: 20.09 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002515/0.44, allocations: 139.6 kB / 0.7227 GB, free: 20.03 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/0.44, allocations: 53.91 kB / 0.7228 GB, free: 19.97 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.362e-05/0.4401, allocations: 132.9 kB / 0.7229 GB, free: 19.86 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.4401, allocations: 36.45 kB / 0.7229 GB, free: 19.82 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.076e-05/0.4402, allocations: 94.22 kB / 0.723 GB, free: 19.73 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.4402, allocations: 25.86 kB / 0.723 GB, free: 19.71 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.46e-05/0.4403, allocations: 66.19 kB / 0.7231 GB, free: 19.69 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.366e-05/0.4403, allocations: 324.2 kB / 0.7234 GB, free: 19.37 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.4405, allocations: 180.8 kB / 0.7236 GB, free: 19.24 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.4406, allocations: 230.8 kB / 0.7238 GB, free: 19.05 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.4408, allocations: 234.5 kB / 0.724 GB, free: 18.85 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4408, allocations: 0 / 0.724 GB, free: 18.85 MB / 0.6355 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004013/0.4412, allocations: 468.7 kB / 0.7245 GB, free: 18.54 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.4412, allocations: 100.9 kB / 0.7246 GB, free: 18.44 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.4412, allocations: 2.094 kB / 0.7246 GB, free: 18.44 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.4413, allocations: 9.906 kB / 0.7246 GB, free: 18.43 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.97e-05/0.4413, allocations: 8.188 kB / 0.7246 GB, free: 18.43 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.4413, allocations: 3.75 kB / 0.7246 GB, free: 18.43 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002964/0.4416, allocations: 84.39 kB / 0.7247 GB, free: 18.41 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.414e-05/0.4416, allocations: 21.16 kB / 0.7247 GB, free: 18.41 MB / 0.6355 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 7.246e-05/0.4417, allocations: 139.9 kB / 0.7248 GB, free: 18.28 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.108e-05/0.4417, allocations: 9.375 kB / 0.7248 GB, free: 18.28 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.899e-05/0.4417, allocations: 6.609 kB / 0.7248 GB, free: 18.27 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4417, allocations: 1.625 kB / 0.7248 GB, free: 18.27 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4417, allocations: 0 / 0.7248 GB, free: 18.27 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4417, allocations: 0.9375 kB / 0.7248 GB, free: 18.27 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.399e-05/0.4418, allocations: 158.9 kB / 0.725 GB, free: 18.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4418, allocations: 7.938 kB / 0.725 GB, free: 18.09 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.394e-06/0.4418, allocations: 6.109 kB / 0.725 GB, free: 18.09 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.4418, allocations: 1.281 kB / 0.725 GB, free: 18.09 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-06/0.4418, allocations: 2.422 kB / 0.725 GB, free: 18.09 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.4418, allocations: 0.9688 kB / 0.725 GB, free: 18.09 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4418, allocations: 1.094 kB / 0.725 GB, free: 18.09 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001303/0.442, allocations: 149 kB / 0.7251 GB, free: 17.99 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 1.049e-05/0.442, allocations: 15.22 kB / 0.7252 GB, free: 17.98 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.442, allocations: 3.109 kB / 0.7252 GB, free: 17.98 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.604e-05/0.442, allocations: 1.031 kB / 0.7252 GB, free: 17.98 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.591e-05/0.442, allocations: 15.25 kB / 0.7252 GB, free: 17.97 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.4421, allocations: 4.578 kB / 0.7252 GB, free: 17.97 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.386e-05/0.4421, allocations: 95.61 kB / 0.7253 GB, free: 17.89 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.4421, allocations: 0 / 0.7253 GB, free: 17.89 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001883/0.4423, allocations: 43.48 kB / 0.7253 GB, free: 17.89 MB / 0.6355 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.0002795/0.4426, allocations: 0.6842 MB / 0.726 GB, free: 17.26 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003116/0.4429, allocations: 408.8 kB / 0.7264 GB, free: 16.92 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4429, allocations: 384 / 0.7264 GB, free: 16.92 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.387e-05/0.4429, allocations: 38.66 kB / 0.7264 GB, free: 16.91 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.4431, allocations: 33.73 kB / 0.7264 GB, free: 16.9 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/0.4448, allocations: 2.441 MB / 0.7288 GB, free: 14.88 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.985e-05/0.4448, allocations: 89.34 kB / 0.7289 GB, free: 14.79 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.395e-05/0.4449, allocations: 8.281 kB / 0.7289 GB, free: 14.79 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.143e-05/0.4449, allocations: 27.88 kB / 0.7289 GB, free: 14.77 MB / 0.6355 GB Notification: Performance of SimCode: time 6.01e-07/0.4449, allocations: 0 / 0.7289 GB, free: 14.77 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.466, allocations: 4.818 MB / 0.7337 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.572/7.038, allocations: 14.55 kB / 0.7337 GB, free: 13.58 MB / 0.6355 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 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.66102509200573] Failed to read output from testmodel.py, exit status != 0: 7.1159635740332305 7.126939706 6.687067609 Calling exit ...