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.001259/0.001259, allocations: 72.45 kB / 19.02 MB, free: 1.105 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.001359/0.001359, allocations: 168.2 kB / 22.29 MB, free: 3.52 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 1.386/1.386, allocations: 177.2 MB / 202.7 MB, free: 4.816 MB / 186.7 MB " [Timeout remaining time 178] 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 1.229/1.229, allocations: 154.7 MB / 413.8 MB, free: 3.156 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: 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.002167/0.002167, allocations: 65.84 kB / 0.6181 GB, free: 1.062 MB / 0.5105 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.2099, allocations: 102 MB / 0.7177 GB, free: 11.18 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002065/0.212, allocations: 0.7573 MB / 0.7185 GB, free: 10.42 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001657/0.2136, allocations: 1.17 MB / 0.7196 GB, free: 9.238 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.38e-05/0.2137, allocations: 0 / 0.7196 GB, free: 9.238 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.903e-05/0.2137, allocations: 3.938 kB / 0.7196 GB, free: 9.234 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.045e-05/0.2138, allocations: 19.88 kB / 0.7196 GB, free: 9.215 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000504/0.2143, allocations: 137.6 kB / 0.7197 GB, free: 9.086 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002131/0.2145, allocations: 135.7 kB / 0.7199 GB, free: 8.953 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.925e-05/0.2146, allocations: 8.281 kB / 0.7199 GB, free: 8.945 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.2147, allocations: 79.86 kB / 0.72 GB, free: 8.867 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.2148, allocations: 35.89 kB / 0.72 GB, free: 8.832 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.055e-05/0.2149, allocations: 12 kB / 0.72 GB, free: 8.82 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.469e-05/0.2149, allocations: 23.98 kB / 0.72 GB, free: 8.797 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.765e-05/0.215, allocations: 19.92 kB / 0.72 GB, free: 8.777 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.641e-05/0.215, allocations: 47.83 kB / 0.7201 GB, free: 8.73 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.2153, allocations: 119.5 kB / 0.7202 GB, free: 8.613 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2153, allocations: 0 / 0.7202 GB, free: 8.613 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.933e-06/0.2153, allocations: 0 / 0.7202 GB, free: 8.613 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.109e-06/0.2153, allocations: 0 / 0.7202 GB, free: 8.613 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.0006816/0.2159, allocations: 351.7 kB / 0.7205 GB, free: 8.23 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.216, allocations: 8.031 kB / 0.7206 GB, free: 8.223 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.322e-05/0.216, allocations: 42.69 kB / 0.7206 GB, free: 8.172 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.564e-05/0.2161, allocations: 16.89 kB / 0.7206 GB, free: 8.156 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.2162, allocations: 114.5 kB / 0.7207 GB, free: 8.02 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.2162, allocations: 4.375 kB / 0.7207 GB, free: 8.016 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.086e-05/0.2162, allocations: 4.375 kB / 0.7207 GB, free: 8.012 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002708/0.2165, allocations: 82.2 kB / 0.7208 GB, free: 7.926 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.2165, allocations: 3.938 kB / 0.7208 GB, free: 7.922 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-06/0.2165, allocations: 3.938 kB / 0.7208 GB, free: 7.918 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.2165, allocations: 0 / 0.7208 GB, free: 7.918 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003258/0.2169, allocations: 75.86 kB / 0.7209 GB, free: 7.844 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004814/0.2173, allocations: 279.8 kB / 0.7212 GB, free: 7.527 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.2175, allocations: 58.53 kB / 0.7212 GB, free: 7.461 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.2177, allocations: 45.59 kB / 0.7213 GB, free: 7.414 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.2177, allocations: 0 / 0.7213 GB, free: 7.414 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003296/0.2181, allocations: 99.25 kB / 0.7213 GB, free: 7.305 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.2181, allocations: 0 / 0.7213 GB, free: 7.305 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.000647/0.2187, allocations: 165.6 kB / 0.7215 GB, free: 7.137 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.2188, allocations: 55.41 kB / 0.7216 GB, free: 7.07 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.2189, allocations: 122 kB / 0.7217 GB, free: 6.938 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.2189, allocations: 29.7 kB / 0.7217 GB, free: 6.902 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.323e-05/0.219, allocations: 96.12 kB / 0.7218 GB, free: 6.805 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.96e-05/0.219, allocations: 7.906 kB / 0.7218 GB, free: 6.797 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.612e-05/0.2191, allocations: 37.7 kB / 0.7218 GB, free: 6.754 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.2192, allocations: 322.7 kB / 0.7221 GB, free: 6.43 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.2195, allocations: 97.58 kB / 0.7222 GB, free: 6.328 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.2198, allocations: 112.2 kB / 0.7223 GB, free: 6.203 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/0.2201, allocations: 140.2 kB / 0.7225 GB, free: 6.051 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2201, allocations: 0 / 0.7225 GB, free: 6.051 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006513/0.2208, allocations: 252.9 kB / 0.7227 GB, free: 5.785 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.977e-05/0.2208, allocations: 33.69 kB / 0.7228 GB, free: 5.746 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.2208, allocations: 3.938 kB / 0.7228 GB, free: 5.742 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.2208, allocations: 4 kB / 0.7228 GB, free: 5.738 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.221, allocations: 15.98 kB / 0.7228 GB, free: 5.723 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.221, allocations: 0 / 0.7228 GB, free: 5.723 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.2212, allocations: 51.94 kB / 0.7228 GB, free: 5.672 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.2213, allocations: 4 kB / 0.7228 GB, free: 5.668 MB / 0.6198 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 0.0001101/0.2214, allocations: 117.9 kB / 0.7229 GB, free: 5.543 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.624e-05/0.2214, allocations: 7.953 kB / 0.7229 GB, free: 5.535 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.537e-05/0.2214, allocations: 16.42 kB / 0.723 GB, free: 5.516 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2214, allocations: 0 / 0.723 GB, free: 5.516 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2214, allocations: 0 / 0.723 GB, free: 5.516 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2214, allocations: 320 / 0.723 GB, free: 5.516 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.2216, allocations: 144.7 kB / 0.7231 GB, free: 5.332 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2216, allocations: 4 kB / 0.7231 GB, free: 5.328 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.2217, allocations: 23.92 kB / 0.7231 GB, free: 5.305 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.2217, allocations: 4.078 kB / 0.7231 GB, free: 5.301 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.2217, allocations: 7.938 kB / 0.7231 GB, free: 5.293 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.2217, allocations: 3.984 kB / 0.7231 GB, free: 5.289 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2217, allocations: 0 / 0.7231 GB, free: 5.289 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004133/0.2221, allocations: 152.9 kB / 0.7233 GB, free: 5.121 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.456e-05/0.2221, allocations: 11.95 kB / 0.7233 GB, free: 5.109 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.2222, allocations: 3.984 kB / 0.7233 GB, free: 5.105 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-05/0.2222, allocations: 15.98 kB / 0.7233 GB, free: 5.09 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.484e-05/0.2223, allocations: 3.984 kB / 0.7233 GB, free: 5.086 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.2223, allocations: 4 kB / 0.7233 GB, free: 5.082 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.074e-05/0.2224, allocations: 93.64 kB / 0.7234 GB, free: 4.992 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7e-08/0.2224, allocations: 0 / 0.7234 GB, free: 4.992 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002311/0.2226, allocations: 28 kB / 0.7234 GB, free: 4.965 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: 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.0007917/0.2234, allocations: 0.6942 MB / 0.7241 GB, free: 4.242 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005301/0.2239, allocations: 204.9 kB / 0.7243 GB, free: 4.023 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2239, allocations: 0 / 0.7243 GB, free: 4.023 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000184/0.2241, allocations: 48.08 kB / 0.7244 GB, free: 3.977 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.2243, allocations: 18.02 kB / 0.7244 GB, free: 3.961 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.2269, allocations: 1.761 MB / 0.7261 GB, free: 2.07 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.738e-05/0.227, allocations: 67.34 kB / 0.7262 GB, free: 1.984 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.761e-05/0.227, allocations: 7.984 kB / 0.7262 GB, free: 1.977 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.096e-05/0.227, allocations: 24.5 kB / 0.7262 GB, free: 1.953 MB / 0.6198 GB Notification: Performance of SimCode: time 4.51e-07/0.227, allocations: 0 / 0.7262 GB, free: 1.953 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.2593, allocations: 3.477 MB / 0.7296 GB, free: 14.61 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.5, allocations: 0.5 kB / 0.7296 GB, free: 14.61 MB / 0.6355 GB " [Timeout remaining time 648] (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: 15.4513859639992] Failed to read output from testmodel.py, exit status != 0: 11.613648005994037 11.644212428 11.423226349 Calling exit ...