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.001194/0.001194, 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.001148/0.001148, allocations: 169.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.9241/0.9241, 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.7506/0.7506, 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.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: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 0.6181 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.818e-05/1.985e-05, allocations: 4.953 kB / 0.6181 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002237/0.002257, allocations: 1.525 MB / 0.6196 GB, free: 12.16 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0006655/0.002922, allocations: 466.9 kB / 0.62 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.659e-05/0.002989, allocations: 7.938 kB / 0.62 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.398e-05/0.003023, allocations: 3.938 kB / 0.6201 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 5.502e-05/0.003078, allocations: 7.875 kB / 0.6201 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.003358, allocations: 39.88 kB / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.003474, allocations: 51.73 kB / 0.6201 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.003581, allocations: 7.984 kB / 0.6202 GB, free: 11.58 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.003712, allocations: 51.83 kB / 0.6202 GB, free: 11.53 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.68e-05/0.003769, allocations: 15.92 kB / 0.6202 GB, free: 11.51 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.003785, allocations: 4 kB / 0.6202 GB, free: 11.51 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 4.308e-05/0.003828, allocations: 8 kB / 0.6202 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.278e-05/0.003841, allocations: 7.984 kB / 0.6202 GB, free: 11.49 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.249e-05/0.003863, allocations: 11.94 kB / 0.6203 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.003982, allocations: 55.8 kB / 0.6203 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.003984, allocations: 0 / 0.6203 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of FrontEnd: time 9.42e-07/0.003985, allocations: 0 / 0.6203 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.088e-06/0.003989, allocations: 0 / 0.6203 GB, free: 11.43 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004148/0.004404, allocations: 300.3 kB / 0.6206 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.004446, allocations: 12.03 kB / 0.6206 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.051e-05/0.004476, allocations: 30.75 kB / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.004603, allocations: 20.88 kB / 0.6207 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.00478, allocations: 133.6 kB / 0.6208 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.00479, allocations: 384 / 0.6208 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-06/0.004799, allocations: 4.375 kB / 0.6208 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.004929, allocations: 58.17 kB / 0.6208 GB, free: 10.81 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.505e-06/0.004936, allocations: 4.188 kB / 0.6208 GB, free: 10.81 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.004948, allocations: 8.125 kB / 0.6208 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.004953, allocations: 0 / 0.6208 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.68e-05/0.00503, allocations: 35.97 kB / 0.6209 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002889/0.005319, allocations: 228 kB / 0.6211 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 9.424e-05/0.005413, allocations: 58.42 kB / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.281e-05/0.005456, allocations: 16.94 kB / 0.6212 GB, free: 10.41 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.005474, allocations: 12 kB / 0.6212 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.005491, allocations: 30.56 kB / 0.6212 GB, free: 10.36 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 8.52e-07/0.005492, allocations: 0 / 0.6212 GB, free: 10.36 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0002034/0.005696, allocations: 85.61 kB / 0.6213 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.005723, allocations: 51.41 kB / 0.6213 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.541e-05/0.005799, allocations: 125.8 kB / 0.6215 GB, free: 10.08 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.005812, allocations: 29.7 kB / 0.6215 GB, free: 10.04 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.638e-05/0.005848, allocations: 88.14 kB / 0.6216 GB, free: 9.953 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.005863, allocations: 7.891 kB / 0.6216 GB, free: 9.945 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.861e-05/0.005892, allocations: 25.7 kB / 0.6216 GB, free: 9.914 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.571e-05/0.005967, allocations: 314.8 kB / 0.6219 GB, free: 9.598 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.669e-05/0.006004, allocations: 15.98 kB / 0.6219 GB, free: 9.582 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.134e-05/0.006035, allocations: 19.92 kB / 0.6219 GB, free: 9.562 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.018e-05/0.006106, allocations: 45.11 kB / 0.622 GB, free: 9.516 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.006107, allocations: 0 / 0.622 GB, free: 9.516 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.701e-05/0.006204, allocations: 81.53 kB / 0.6221 GB, free: 9.43 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.006218, allocations: 12 kB / 0.6221 GB, free: 9.418 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.006223, allocations: 0 / 0.6221 GB, free: 9.418 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.006235, allocations: 0 / 0.6221 GB, free: 9.418 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.357e-05/0.006298, allocations: 11.92 kB / 0.6221 GB, free: 9.406 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.006304, allocations: 4 kB / 0.6221 GB, free: 9.402 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.121e-05/0.006325, allocations: 0 / 0.6221 GB, free: 9.402 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.006333, allocations: 4 kB / 0.6221 GB, free: 9.398 MB / 0.5886 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 5.487e-05/0.006388, allocations: 114.8 kB / 0.6222 GB, free: 9.277 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.442e-05/0.006402, allocations: 11.89 kB / 0.6222 GB, free: 9.266 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.086e-05/0.006423, allocations: 15.98 kB / 0.6222 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.006424, allocations: 0 / 0.6222 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.006429, allocations: 0 / 0.6222 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.006431, allocations: 0 / 0.6222 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.006536, allocations: 136.7 kB / 0.6224 GB, free: 9.07 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.006539, allocations: 8 kB / 0.6224 GB, free: 9.062 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.783e-05/0.006566, allocations: 7.984 kB / 0.6224 GB, free: 9.055 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.12e-07/0.006567, allocations: 0 / 0.6224 GB, free: 9.055 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.006573, allocations: 0 / 0.6224 GB, free: 9.055 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.006574, allocations: 4 kB / 0.6224 GB, free: 9.051 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.006575, allocations: 0 / 0.6224 GB, free: 9.051 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000125/0.0067, allocations: 183.3 kB / 0.6226 GB, free: 8.855 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.643e-06/0.006706, allocations: 7.953 kB / 0.6226 GB, free: 8.848 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.006717, allocations: 0 / 0.6226 GB, free: 8.848 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.676e-05/0.006754, allocations: 7.984 kB / 0.6226 GB, free: 8.84 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.122e-05/0.006785, allocations: 4 kB / 0.6226 GB, free: 8.836 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.006787, allocations: 0 / 0.6226 GB, free: 8.836 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.827e-05/0.006826, allocations: 102.1 kB / 0.6227 GB, free: 8.738 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7e-08/0.006826, allocations: 0 / 0.6227 GB, free: 8.738 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001413/0.006967, allocations: 4 kB / 0.6227 GB, free: 8.734 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: 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.0002897/0.007257, allocations: 0.7007 MB / 0.6234 GB, free: 8.004 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001159/0.007373, allocations: 43.91 kB / 0.6234 GB, free: 7.961 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.007374, allocations: 3.938 kB / 0.6234 GB, free: 7.957 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 3.591e-05/0.00741, allocations: 23.92 kB / 0.6234 GB, free: 7.934 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001549/0.007565, allocations: 5.875 kB / 0.6234 GB, free: 7.93 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009467/0.008512, allocations: 1.368 MB / 0.6248 GB, free: 6.48 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.856e-05/0.00856, allocations: 67.7 kB / 0.6248 GB, free: 6.395 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.801e-05/0.008588, allocations: 7.984 kB / 0.6248 GB, free: 6.387 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.765e-05/0.008626, allocations: 20.5 kB / 0.6249 GB, free: 6.367 MB / 0.5886 GB Notification: Performance of SimCode: time 4.21e-07/0.008626, allocations: 0 / 0.6249 GB, free: 6.367 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01492/0.02354, allocations: 2.189 MB / 0.627 GB, free: 4.336 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.027/7.051, allocations: 9.938 kB / 0.627 GB, free: 4.336 MB / 0.5886 GB " [Timeout remaining time 653] (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: 9.827326687984169] Failed to read output from testmodel.py, exit status != 0: 7.129988186061382 7.139146985 7.133488237 Calling exit ...