Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0008001/0.0008001, 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.000802/0.000802, allocations: 165.9 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.9099/0.9099, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.708/0.708, allocations: 154.6 MB / 413.8 MB, free: 0.8008 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/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_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.797e-06/3.797e-06, allocations: 4 kB / 0.6182 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.088e-05/2.468e-05, allocations: 2.281 kB / 0.6182 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001468/0.001492, allocations: 0.7579 MB / 0.6189 GB, free: 12.85 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001148/0.00264, allocations: 1.186 MB / 0.6201 GB, free: 11.65 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.872e-05/0.002689, allocations: 3.938 kB / 0.6201 GB, free: 11.65 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.974e-05/0.002719, allocations: 3.938 kB / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.501e-05/0.002784, allocations: 7.875 kB / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004115/0.003195, allocations: 141.4 kB / 0.6202 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001484/0.003344, allocations: 135.7 kB / 0.6203 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.181e-05/0.003436, allocations: 8 kB / 0.6203 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.003549, allocations: 75.86 kB / 0.6204 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 7.783e-05/0.003626, allocations: 39.89 kB / 0.6205 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.003648, allocations: 8 kB / 0.6205 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.604e-05/0.003704, allocations: 31.92 kB / 0.6205 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.466e-05/0.003728, allocations: 15.91 kB / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.441e-05/0.003773, allocations: 27.98 kB / 0.6205 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001976/0.00397, allocations: 147.6 kB / 0.6207 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.003974, allocations: 4 kB / 0.6207 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.513e-06/0.003975, allocations: 0 / 0.6207 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.003981, allocations: 0 / 0.6207 GB, free: 11.02 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.0004853/0.004466, allocations: 347.8 kB / 0.621 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.004505, allocations: 8.031 kB / 0.621 GB, free: 10.63 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.656e-05/0.004532, allocations: 34.75 kB / 0.6211 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.722e-05/0.004569, allocations: 8.891 kB / 0.6211 GB, free: 10.58 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.417e-05/0.004643, allocations: 113.7 kB / 0.6212 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.004656, allocations: 8.375 kB / 0.6212 GB, free: 10.44 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.004672, allocations: 12.31 kB / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001606/0.004833, allocations: 78.2 kB / 0.6213 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.004842, allocations: 4.172 kB / 0.6213 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.004851, allocations: 384 / 0.6213 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.004859, allocations: 4.125 kB / 0.6213 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.005006, allocations: 71.92 kB / 0.6213 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003292/0.005335, allocations: 275.9 kB / 0.6216 GB, free: 9.953 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001251/0.00546, allocations: 70.41 kB / 0.6217 GB, free: 9.875 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.79e-05/0.005538, allocations: 40.86 kB / 0.6217 GB, free: 9.832 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.005555, allocations: 3.984 kB / 0.6217 GB, free: 9.828 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.00573, allocations: 99.34 kB / 0.6218 GB, free: 9.719 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.492e-06/0.005731, allocations: 0 / 0.6218 GB, free: 9.719 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0003364/0.006068, allocations: 165.5 kB / 0.622 GB, free: 9.551 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.934e-05/0.006097, allocations: 51.41 kB / 0.622 GB, free: 9.488 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.174e-05/0.006169, allocations: 126.1 kB / 0.6221 GB, free: 9.352 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.006186, allocations: 33.7 kB / 0.6222 GB, free: 9.312 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.006235, allocations: 96.12 kB / 0.6223 GB, free: 9.215 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.006249, allocations: 15.84 kB / 0.6223 GB, free: 9.199 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.66e-05/0.006296, allocations: 37.64 kB / 0.6223 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.818e-05/0.006374, allocations: 318.8 kB / 0.6226 GB, free: 8.836 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.006502, allocations: 89.66 kB / 0.6227 GB, free: 8.742 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.006627, allocations: 108.2 kB / 0.6228 GB, free: 8.621 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001949/0.006822, allocations: 148.1 kB / 0.6229 GB, free: 8.461 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.006824, allocations: 0 / 0.6229 GB, free: 8.461 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002993/0.007123, allocations: 248.9 kB / 0.6232 GB, free: 8.199 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.007151, allocations: 45.75 kB / 0.6232 GB, free: 8.148 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.007157, allocations: 0 / 0.6232 GB, free: 8.148 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.007167, allocations: 4 kB / 0.6232 GB, free: 8.145 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.884e-05/0.007246, allocations: 16.3 kB / 0.6232 GB, free: 8.129 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.007252, allocations: 0 / 0.6232 GB, free: 8.129 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.007368, allocations: 39.91 kB / 0.6233 GB, free: 8.09 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.007385, allocations: 11.98 kB / 0.6233 GB, free: 8.078 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 6.514e-05/0.00745, allocations: 122.8 kB / 0.6234 GB, free: 7.949 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.908e-06/0.00746, allocations: 11.89 kB / 0.6234 GB, free: 7.938 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.058e-05/0.00748, allocations: 12.44 kB / 0.6234 GB, free: 7.922 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.007483, allocations: 0 / 0.6234 GB, free: 7.922 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.007487, allocations: 0 / 0.6234 GB, free: 7.922 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.007489, allocations: 0 / 0.6234 GB, free: 7.922 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.67e-05/0.007586, allocations: 148.7 kB / 0.6236 GB, free: 7.734 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.007587, allocations: 0 / 0.6236 GB, free: 7.734 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.285e-05/0.00763, allocations: 19.97 kB / 0.6236 GB, free: 7.715 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.007631, allocations: 0 / 0.6236 GB, free: 7.715 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/0.007637, allocations: 4 kB / 0.6236 GB, free: 7.711 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.007638, allocations: 7.938 kB / 0.6236 GB, free: 7.703 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.007639, allocations: 0 / 0.6236 GB, free: 7.703 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002085/0.007848, allocations: 152.9 kB / 0.6238 GB, free: 7.535 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 8.195e-06/0.007856, allocations: 4 kB / 0.6238 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.007868, allocations: 4 kB / 0.6238 GB, free: 7.527 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.539e-05/0.007903, allocations: 15.98 kB / 0.6238 GB, free: 7.512 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.171e-05/0.007935, allocations: 3.984 kB / 0.6238 GB, free: 7.508 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.471e-06/0.00794, allocations: 4 kB / 0.6238 GB, free: 7.504 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.531e-05/0.007975, allocations: 97.89 kB / 0.6239 GB, free: 7.41 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8e-08/0.007976, allocations: 0 / 0.6239 GB, free: 7.41 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001481/0.008124, allocations: 23.94 kB / 0.6239 GB, free: 7.387 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.0007788/0.008902, allocations: 0.6904 MB / 0.6246 GB, free: 6.668 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003741/0.009276, allocations: 205.1 kB / 0.6248 GB, free: 6.449 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.009278, allocations: 96 / 0.6248 GB, free: 6.449 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.009392, allocations: 51.95 kB / 0.6248 GB, free: 6.398 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.00961, allocations: 24.23 kB / 0.6248 GB, free: 6.375 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002266/0.01188, allocations: 1.753 MB / 0.6266 GB, free: 4.492 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.697e-05/0.01192, allocations: 79.22 kB / 0.6266 GB, free: 4.395 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.27e-05/0.01196, allocations: 3.984 kB / 0.6266 GB, free: 4.391 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.012, allocations: 20.5 kB / 0.6267 GB, free: 4.371 MB / 0.5886 GB Notification: Performance of SimCode: time 5.91e-07/0.012, allocations: 0 / 0.6267 GB, free: 4.371 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01622/0.02823, allocations: 3.489 MB / 0.6301 GB, free: 1.074 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.457/6.485, allocations: 5.078 kB / 0.6301 GB, free: 1.07 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.134596653282642] Failed to read output from testmodel.py, exit status != 0: 6.568323050625622 6.5747582 6.569251037 Calling exit ...