Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.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.0007714/0.0007714, 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.0008319/0.0008319, allocations: 170.3 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.9402/0.9402, allocations: 177.1 MB / 202.8 MB, free: 5.75 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.7471/0.7471, allocations: 154.6 MB / 413.7 MB, free: 0.8125 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.Reals.Validation.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0 / 0.6181 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.564e-05/1.802e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001286/0.001304, allocations: 0.7641 MB / 0.6189 GB, free: 12.88 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001207/0.002511, allocations: 1.17 MB / 0.62 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.216e-05/0.002563, allocations: 0 / 0.62 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.938e-05/0.002592, allocations: 3.938 kB / 0.62 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.509e-05/0.002667, allocations: 19.86 kB / 0.62 GB, free: 11.67 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004414/0.003109, allocations: 138.8 kB / 0.6202 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001771/0.003286, allocations: 135.7 kB / 0.6203 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.003387, allocations: 4 kB / 0.6203 GB, free: 11.4 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.003498, allocations: 79.86 kB / 0.6204 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 8.395e-05/0.003582, allocations: 31.95 kB / 0.6204 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.003605, allocations: 12 kB / 0.6204 GB, free: 11.28 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.961e-05/0.003664, allocations: 27.98 kB / 0.6204 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.577e-05/0.00369, allocations: 19.91 kB / 0.6204 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 5.037e-05/0.00374, allocations: 31.92 kB / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001819/0.003922, allocations: 139.6 kB / 0.6206 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.003925, allocations: 4 kB / 0.6206 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.052e-06/0.003926, allocations: 0 / 0.6206 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.003932, allocations: 7.922 kB / 0.6206 GB, free: 11.05 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.0006076/0.00454, allocations: 343.8 kB / 0.621 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.00458, allocations: 13.47 kB / 0.621 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.851e-05/0.004609, allocations: 34.75 kB / 0.621 GB, free: 10.62 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.71e-05/0.004646, allocations: 12.89 kB / 0.621 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.376e-05/0.00473, allocations: 117.7 kB / 0.6211 GB, free: 10.47 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.004742, allocations: 4.375 kB / 0.6211 GB, free: 10.47 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.518e-05/0.004757, allocations: 4.375 kB / 0.6211 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.004934, allocations: 78.19 kB / 0.6212 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.004942, allocations: 192 / 0.6212 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.004955, allocations: 16.3 kB / 0.6212 GB, free: 10.37 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.004961, allocations: 4.125 kB / 0.6212 GB, free: 10.36 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001473/0.005108, allocations: 67.92 kB / 0.6213 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003659/0.005474, allocations: 279.9 kB / 0.6216 GB, free: 9.98 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.005583, allocations: 54.53 kB / 0.6216 GB, free: 9.918 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.304e-05/0.005666, allocations: 52.8 kB / 0.6217 GB, free: 9.863 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.005686, allocations: 0 / 0.6217 GB, free: 9.863 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.005876, allocations: 95.34 kB / 0.6217 GB, free: 9.758 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.293e-06/0.005877, allocations: 0 / 0.6217 GB, free: 9.758 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0003882/0.006265, allocations: 161.5 kB / 0.6219 GB, free: 9.594 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/0.006312, allocations: 59.34 kB / 0.622 GB, free: 9.523 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.214e-05/0.006404, allocations: 126.1 kB / 0.6221 GB, free: 9.387 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.006425, allocations: 29.64 kB / 0.6221 GB, free: 9.352 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.871e-05/0.006483, allocations: 92.12 kB / 0.6222 GB, free: 9.258 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.006503, allocations: 19.84 kB / 0.6222 GB, free: 9.238 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.115e-05/0.006554, allocations: 29.7 kB / 0.6222 GB, free: 9.203 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.006664, allocations: 322.8 kB / 0.6226 GB, free: 8.879 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.006806, allocations: 85.66 kB / 0.6226 GB, free: 8.789 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.006945, allocations: 116.2 kB / 0.6227 GB, free: 8.66 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002118/0.007157, allocations: 144.1 kB / 0.6229 GB, free: 8.504 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.00716, allocations: 0 / 0.6229 GB, free: 8.504 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003366/0.007496, allocations: 252.9 kB / 0.6231 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.627e-05/0.007532, allocations: 37.7 kB / 0.6232 GB, free: 8.195 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.00754, allocations: 3.984 kB / 0.6232 GB, free: 8.191 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.007557, allocations: 0 / 0.6232 GB, free: 8.191 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.15e-05/0.007649, allocations: 20.23 kB / 0.6232 GB, free: 8.172 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.007656, allocations: 0 / 0.6232 GB, free: 8.172 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.007774, allocations: 47.97 kB / 0.6232 GB, free: 8.125 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.007794, allocations: 11.98 kB / 0.6232 GB, free: 8.113 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.435e-05/0.007878, allocations: 122.9 kB / 0.6234 GB, free: 7.984 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.363e-05/0.007892, allocations: 11.89 kB / 0.6234 GB, free: 7.973 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.683e-05/0.007919, allocations: 4.438 kB / 0.6234 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.007921, allocations: 0 / 0.6234 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.007927, allocations: 3.938 kB / 0.6234 GB, free: 7.961 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.007933, allocations: 4 kB / 0.6234 GB, free: 7.957 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.008037, allocations: 152.7 kB / 0.6235 GB, free: 7.766 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.008038, allocations: 0 / 0.6235 GB, free: 7.766 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.879e-05/0.008087, allocations: 19.97 kB / 0.6235 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.008088, allocations: 0 / 0.6235 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.008097, allocations: 0 / 0.6235 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.008098, allocations: 0 / 0.6235 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.008099, allocations: 0 / 0.6235 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002232/0.008323, allocations: 160.9 kB / 0.6237 GB, free: 7.57 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.825e-06/0.00833, allocations: 4 kB / 0.6237 GB, free: 7.566 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.165e-05/0.008342, allocations: 0 / 0.6237 GB, free: 7.566 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.594e-05/0.008378, allocations: 11.98 kB / 0.6237 GB, free: 7.555 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.583e-05/0.008424, allocations: 11.98 kB / 0.6237 GB, free: 7.543 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.00843, allocations: 0 / 0.6237 GB, free: 7.543 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 4.012e-05/0.00847, allocations: 102.7 kB / 0.6238 GB, free: 7.445 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.00847, allocations: 0 / 0.6238 GB, free: 7.445 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001544/0.008624, allocations: 27.98 kB / 0.6238 GB, free: 7.418 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006006/0.009225, allocations: 0.6904 MB / 0.6245 GB, free: 6.699 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.000313/0.009538, allocations: 209.1 kB / 0.6247 GB, free: 6.477 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.009541, allocations: 0 / 0.6247 GB, free: 6.477 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 8.96e-05/0.009631, allocations: 48.08 kB / 0.6248 GB, free: 6.43 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001659/0.009797, allocations: 14.64 kB / 0.6248 GB, free: 6.418 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.0114, allocations: 1.764 MB / 0.6265 GB, free: 4.527 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.187e-05/0.01146, allocations: 67.34 kB / 0.6266 GB, free: 4.441 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.448e-05/0.01149, allocations: 11.92 kB / 0.6266 GB, free: 4.43 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.913e-05/0.01154, allocations: 24.5 kB / 0.6266 GB, free: 4.406 MB / 0.5886 GB Notification: Performance of SimCode: time 1.092e-06/0.01154, allocations: 0 / 0.6266 GB, free: 4.406 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.02897, allocations: 3.487 MB / 0.63 GB, free: 1.102 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.738/6.767, allocations: 10.47 kB / 0.63 GB, free: 1.102 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.541618110612035] Failed to read output from testmodel.py, exit status != 0: 6.8477942943573 6.859855215 6.854244556 Calling exit ...