Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.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.001293/0.001293, allocations: 68.47 kB / 19.02 MB, free: 1.137 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.001484/0.001484, allocations: 159.8 kB / 22.29 MB, free: 3.535 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.428/1.428, allocations: 177.2 MB / 202.7 MB, free: 4.812 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.2/1.2, allocations: 154.7 MB / 413.8 MB, free: 3.133 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.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="IDEAS_IDEAS_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="IDEAS_IDEAS_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",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.002073/0.002073, allocations: 70.86 kB / 0.6181 GB, free: 1.109 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.2343/0.2363, allocations: 102 MB / 0.7176 GB, free: 11.24 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003443/0.2398, allocations: 1.524 MB / 0.7191 GB, free: 9.703 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0009232/0.2407, allocations: 459 kB / 0.7196 GB, free: 9.25 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.999e-05/0.2408, allocations: 0 / 0.7196 GB, free: 9.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.789e-05/0.2408, allocations: 11.81 kB / 0.7196 GB, free: 9.238 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.974e-05/0.2409, allocations: 15.86 kB / 0.7196 GB, free: 9.223 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002356/0.2411, allocations: 27.95 kB / 0.7196 GB, free: 9.195 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001337/0.2412, allocations: 55.78 kB / 0.7197 GB, free: 9.141 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.2413, allocations: 15.92 kB / 0.7197 GB, free: 9.125 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.2415, allocations: 47.84 kB / 0.7197 GB, free: 9.078 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.289e-05/0.2416, allocations: 23.86 kB / 0.7198 GB, free: 9.055 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.387e-05/0.2416, allocations: 0 / 0.7198 GB, free: 9.055 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.458e-05/0.2416, allocations: 8 kB / 0.7198 GB, free: 9.047 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.935e-05/0.2417, allocations: 11.97 kB / 0.7198 GB, free: 9.035 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.681e-05/0.2417, allocations: 19.88 kB / 0.7198 GB, free: 9.016 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001324/0.2418, allocations: 51.75 kB / 0.7198 GB, free: 8.965 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2418, allocations: 0 / 0.7198 GB, free: 8.965 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.183e-06/0.2418, allocations: 0 / 0.7198 GB, free: 8.965 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.2418, allocations: 0 / 0.7198 GB, free: 8.965 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005557/0.2424, allocations: 298.1 kB / 0.7201 GB, free: 8.645 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.2424, allocations: 8.031 kB / 0.7201 GB, free: 8.637 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.707e-05/0.2425, allocations: 30.75 kB / 0.7202 GB, free: 8.598 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002302/0.2427, allocations: 28.86 kB / 0.7202 GB, free: 8.57 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.243, allocations: 133.2 kB / 0.7203 GB, free: 8.418 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.243, allocations: 384 / 0.7203 GB, free: 8.418 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.828e-06/0.243, allocations: 384 / 0.7203 GB, free: 8.418 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001916/0.2432, allocations: 61.8 kB / 0.7204 GB, free: 8.352 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2432, allocations: 4 kB / 0.7204 GB, free: 8.348 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.2433, allocations: 3.984 kB / 0.7204 GB, free: 8.344 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.2433, allocations: 3.938 kB / 0.7204 GB, free: 8.34 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001519/0.2434, allocations: 35.97 kB / 0.7204 GB, free: 8.305 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004331/0.2438, allocations: 247.9 kB / 0.7207 GB, free: 8.02 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00013/0.244, allocations: 38.56 kB / 0.7207 GB, free: 7.973 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.174e-05/0.2441, allocations: 24.94 kB / 0.7207 GB, free: 7.945 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.2441, allocations: 4 kB / 0.7207 GB, free: 7.941 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.2441, allocations: 30.56 kB / 0.7208 GB, free: 7.902 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.2441, allocations: 0 / 0.7208 GB, free: 7.902 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0003591/0.2445, allocations: 89.58 kB / 0.7208 GB, free: 7.809 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.2445, allocations: 59.34 kB / 0.7209 GB, free: 7.738 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.2446, allocations: 121.8 kB / 0.721 GB, free: 7.609 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.2446, allocations: 25.7 kB / 0.721 GB, free: 7.578 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.219e-05/0.2447, allocations: 92.08 kB / 0.7211 GB, free: 7.484 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.2447, allocations: 15.89 kB / 0.7211 GB, free: 7.469 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.902e-05/0.2448, allocations: 13.72 kB / 0.7212 GB, free: 7.449 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001707/0.245, allocations: 326.8 kB / 0.7215 GB, free: 7.121 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.512e-05/0.245, allocations: 11.98 kB / 0.7215 GB, free: 7.109 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.588e-05/0.2451, allocations: 19.98 kB / 0.7215 GB, free: 7.09 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001431/0.2452, allocations: 40.83 kB / 0.7215 GB, free: 7.047 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2452, allocations: 0 / 0.7215 GB, free: 7.047 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001964/0.2454, allocations: 85.56 kB / 0.7216 GB, free: 6.957 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.2454, allocations: 4 kB / 0.7216 GB, free: 6.953 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2455, allocations: 0 / 0.7216 GB, free: 6.953 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.2455, allocations: 0 / 0.7216 GB, free: 6.953 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.2456, allocations: 11.98 kB / 0.7216 GB, free: 6.941 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.2456, allocations: 0 / 0.7216 GB, free: 6.941 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.385e-05/0.2456, allocations: 7.984 kB / 0.7216 GB, free: 6.934 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.2456, allocations: 0 / 0.7216 GB, free: 6.934 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.000116/0.2458, allocations: 117.8 kB / 0.7218 GB, free: 6.809 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.527e-05/0.2458, allocations: 7.953 kB / 0.7218 GB, free: 6.801 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.169e-05/0.2458, allocations: 12 kB / 0.7218 GB, free: 6.785 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2458, allocations: 0 / 0.7218 GB, free: 6.785 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2458, allocations: 0 / 0.7218 GB, free: 6.785 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2458, allocations: 0 / 0.7218 GB, free: 6.785 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001842/0.246, allocations: 140.7 kB / 0.7219 GB, free: 6.605 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.246, allocations: 0 / 0.7219 GB, free: 6.605 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.273e-05/0.2461, allocations: 11.98 kB / 0.7219 GB, free: 6.594 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2461, allocations: 0 / 0.7219 GB, free: 6.594 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.2461, allocations: 4 kB / 0.7219 GB, free: 6.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2461, allocations: 0 / 0.7219 GB, free: 6.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.2461, allocations: 7.938 kB / 0.7219 GB, free: 6.582 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002672/0.2464, allocations: 176.2 kB / 0.7221 GB, free: 6.395 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.158e-05/0.2464, allocations: 7.938 kB / 0.7221 GB, free: 6.387 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.2464, allocations: 0 / 0.7221 GB, free: 6.387 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.941e-05/0.2465, allocations: 4 kB / 0.7221 GB, free: 6.383 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.379e-05/0.2465, allocations: 7.922 kB / 0.7221 GB, free: 6.375 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.2465, allocations: 4 kB / 0.7221 GB, free: 6.371 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.957e-05/0.2466, allocations: 95.27 kB / 0.7222 GB, free: 6.277 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.2466, allocations: 0 / 0.7222 GB, free: 6.277 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002202/0.2468, allocations: 12 kB / 0.7222 GB, free: 6.266 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000616/0.2474, allocations: 0.7045 MB / 0.7229 GB, free: 5.535 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001984/0.2476, allocations: 35.97 kB / 0.7229 GB, free: 5.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.2476, allocations: 4 kB / 0.7229 GB, free: 5.496 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.529e-05/0.2477, allocations: 15.98 kB / 0.723 GB, free: 5.48 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.2479, allocations: 11.98 kB / 0.723 GB, free: 5.469 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.2498, allocations: 1.376 MB / 0.7243 GB, free: 4.016 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.602e-05/0.2498, allocations: 67.33 kB / 0.7244 GB, free: 3.93 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.242e-05/0.2499, allocations: 8 kB / 0.7244 GB, free: 3.922 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.649e-05/0.2499, allocations: 16.48 kB / 0.7244 GB, free: 3.906 MB / 0.6198 GB Notification: Performance of SimCode: time 4.91e-07/0.2499, allocations: 0 / 0.7244 GB, free: 3.906 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03541/0.2853, allocations: 2.2 MB / 0.7266 GB, free: 1.84 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.59, allocations: 8.047 kB / 0.7266 GB, free: 1.832 MB / 0.6198 GB " [Timeout remaining time 648] (rm -f IDEAS_IDEAS.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo IDEAS_IDEAS.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/IDEAS_IDEAS.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > IDEAS_IDEAS.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.674971877990174] Failed to read output from testmodel.py, exit status != 0: 11.696806585008744 11.720861787 11.475132417 Calling exit ...