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.0007971/0.0007971, allocations: 109.9 kB / 18.93 MB, free: 1.27 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.0009114/0.0009114, allocations: 219.2 kB / 22.26 MB, free: 3.84 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.9413/0.9413, allocations: 230.6 MB / 256 MB, free: 9.797 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.7749/0.7749, allocations: 203.8 MB / 0.5042 GB, free: 10.62 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.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.0009044/0.0009044, allocations: 78.22 kB / 0.7182 GB, free: 4.316 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4628/0.4637, allocations: 102 MB / 0.8179 GB, free: 1.254 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001295/0.465, allocations: 0.6893 MB / 0.8185 GB, free: 0.8164 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.466, allocations: 1.315 MB / 0.8198 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.745e-05/0.466, allocations: 2.875 kB / 0.8198 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.571e-05/0.466, allocations: 4.734 kB / 0.8198 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.066e-05/0.4661, allocations: 12.03 kB / 0.8199 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005931/0.4667, allocations: 316.2 kB / 0.8202 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002322/0.4669, allocations: 257.9 kB / 0.8204 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.621e-05/0.467, allocations: 10.52 kB / 0.8204 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.4671, allocations: 104.6 kB / 0.8205 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.4673, allocations: 93.39 kB / 0.8206 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.115e-05/0.4673, allocations: 24.38 kB / 0.8206 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.695e-05/0.4674, allocations: 33.91 kB / 0.8207 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.059e-05/0.4674, allocations: 16.08 kB / 0.8207 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.955e-05/0.4675, allocations: 87.92 kB / 0.8208 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002268/0.4677, allocations: 222.8 kB / 0.821 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.4677, allocations: 0.75 kB / 0.821 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.243e-06/0.4677, allocations: 0 / 0.821 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.4677, allocations: 0 / 0.821 GB, free: 15.37 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004382/0.4681, allocations: 426.4 kB / 0.8214 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.4682, allocations: 10.66 kB / 0.8214 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.839e-05/0.4682, allocations: 40.16 kB / 0.8214 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.742e-05/0.4683, allocations: 16.09 kB / 0.8214 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.528e-05/0.4684, allocations: 118 kB / 0.8215 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.4684, allocations: 7.094 kB / 0.8216 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.4684, allocations: 18.86 kB / 0.8216 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.4685, allocations: 62.64 kB / 0.8216 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.4685, allocations: 1.281 kB / 0.8216 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.709e-06/0.4685, allocations: 4.734 kB / 0.8216 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.4685, allocations: 1.25 kB / 0.8216 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.158e-05/0.4686, allocations: 22.48 kB / 0.8217 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000433/0.469, allocations: 382.2 kB / 0.822 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.954e-05/0.4691, allocations: 36.16 kB / 0.8221 GB, free: 14.4 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.755e-05/0.4691, allocations: 17.91 kB / 0.8221 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 7.514e-06/0.4691, allocations: 1.656 kB / 0.8221 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001567/0.4692, allocations: 108.9 kB / 0.8222 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 7.91e-07/0.4692, allocations: 0 / 0.8222 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0002224/0.4695, allocations: 140.4 kB / 0.8223 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.4695, allocations: 55.41 kB / 0.8224 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.347e-05/0.4696, allocations: 139.6 kB / 0.8225 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.4696, allocations: 36.3 kB / 0.8225 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.116e-05/0.4697, allocations: 93.55 kB / 0.8226 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.613e-05/0.4697, allocations: 19.7 kB / 0.8226 GB, free: 13.94 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.945e-05/0.4698, allocations: 68.34 kB / 0.8227 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.999e-05/0.4698, allocations: 327.7 kB / 0.823 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.47, allocations: 87.62 kB / 0.8231 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001569/0.4701, allocations: 136.3 kB / 0.8232 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001994/0.4703, allocations: 244.5 kB / 0.8235 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.4703, allocations: 3.938 kB / 0.8235 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003996/0.4707, allocations: 375.6 kB / 0.8238 GB, free: 13.05 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.587e-05/0.4708, allocations: 108.2 kB / 0.8239 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.4708, allocations: 2.438 kB / 0.8239 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.4708, allocations: 2.188 kB / 0.8239 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.043e-05/0.4708, allocations: 3.062 kB / 0.8239 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.4708, allocations: 6.875 kB / 0.8239 GB, free: 12.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002817/0.4711, allocations: 87.78 kB / 0.824 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.4712, allocations: 17.47 kB / 0.824 GB, free: 12.93 MB / 0.6198 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 8.386e-05/0.4712, allocations: 131 kB / 0.8242 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/0.4712, allocations: 9.781 kB / 0.8242 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.502e-05/0.4713, allocations: 10.41 kB / 0.8242 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.4713, allocations: 1.406 kB / 0.8242 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4713, allocations: 0 / 0.8242 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.4713, allocations: 1.906 kB / 0.8242 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.4714, allocations: 167.8 kB / 0.8244 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4714, allocations: 0 / 0.8244 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.542e-06/0.4714, allocations: 5.953 kB / 0.8244 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4714, allocations: 1.406 kB / 0.8244 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.4714, allocations: 2.406 kB / 0.8244 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.4714, allocations: 5.875 kB / 0.8244 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.4714, allocations: 0 / 0.8244 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001616/0.4716, allocations: 141.4 kB / 0.8245 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.076e-05/0.4716, allocations: 7.688 kB / 0.8245 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.4716, allocations: 10.42 kB / 0.8245 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.558e-05/0.4716, allocations: 1.656 kB / 0.8245 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.4717, allocations: 12.39 kB / 0.8245 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.4717, allocations: 3.562 kB / 0.8245 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.898e-05/0.4717, allocations: 103.2 kB / 0.8246 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.1e-08/0.4717, allocations: 0 / 0.8246 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001825/0.4719, allocations: 47.5 kB / 0.8247 GB, free: 12.4 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: 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.0005612/0.4725, allocations: 0.6844 MB / 0.8254 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003065/0.4728, allocations: 322.9 kB / 0.8257 GB, free: 11.53 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.4728, allocations: 0 / 0.8257 GB, free: 11.53 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 4.031e-05/0.4728, allocations: 27.72 kB / 0.8257 GB, free: 11.52 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001815/0.473, allocations: 30.11 kB / 0.8257 GB, free: 11.51 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.4747, allocations: 2.067 MB / 0.8277 GB, free: 9.891 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001688/0.4748, allocations: 0.6918 MB / 0.8284 GB, free: 9.195 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.74e-05/0.4749, allocations: 13.05 kB / 0.8284 GB, free: 9.191 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.735e-05/0.4749, allocations: 26.11 kB / 0.8284 GB, free: 9.172 MB / 0.6198 GB Notification: Performance of SimCode: time 7.21e-07/0.4749, allocations: 3.938 kB / 0.8285 GB, free: 9.168 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.4918, allocations: 3.973 MB / 0.8323 GB, free: 8.57 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.769/7.26, allocations: 1.531 kB / 0.8323 GB, free: 8.57 MB / 0.6198 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: 10.04818441090174] Failed to read output from testmodel.py, exit status != 0: 7.336664990987629 7.349981438 6.880126814 Calling exit ...