Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.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.00147/0.00147, allocations: 99.75 kB / 18.95 MB, free: 2.832 MB / 14.72 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.001812/0.001812, allocations: 215.6 kB / 22.24 MB, free: 5.105 MB / 14.72 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.176/3.176, allocations: 0.49 GB / 0.7951 GB, free: 35.63 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings 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.002/0.002, allocations: 68.2 kB / 1.154 GB, free: 25.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3141, allocations: 176.1 MB / 1.326 GB, free: 1.66 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006578/0.3207, allocations: 4.28 MB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003337/0.324, allocations: 1.839 MB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002431/0.3243, allocations: 11.94 kB / 1.332 GB, free: 11.51 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001773/0.326, allocations: 0.5927 MB / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0006719/0.3267, allocations: 270.6 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007154/0.3274, allocations: 252.4 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0008062/0.3282, allocations: 0.6073 MB / 1.333 GB, free: 9.793 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006746/0.3289, allocations: 347.4 kB / 1.334 GB, free: 9.449 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003637/0.3293, allocations: 259.1 kB / 1.334 GB, free: 9.195 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005706/0.3298, allocations: 286.9 kB / 1.334 GB, free: 8.914 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.836e-05/0.3299, allocations: 36 kB / 1.334 GB, free: 8.879 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004863/0.3304, allocations: 231.5 kB / 1.335 GB, free: 8.652 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001927/0.3306, allocations: 159.5 kB / 1.335 GB, free: 8.496 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002291/0.3308, allocations: 175.2 kB / 1.335 GB, free: 8.324 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0008623/0.3317, allocations: 0.6149 MB / 1.336 GB, free: 7.707 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3317, allocations: 3.984 kB / 1.336 GB, free: 7.703 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3317, allocations: 0 / 1.336 GB, free: 7.703 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.367e-05/0.3317, allocations: 0 / 1.336 GB, free: 7.703 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001333/0.333, allocations: 0.6587 MB / 1.336 GB, free: 7.016 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3331, allocations: 12.03 kB / 1.336 GB, free: 7.004 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.873e-05/0.3332, allocations: 78.7 kB / 1.336 GB, free: 6.918 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001018/0.3342, allocations: 156.5 kB / 1.336 GB, free: 6.766 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005659/0.3347, allocations: 272.8 kB / 1.337 GB, free: 6.473 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.3348, allocations: 25.38 kB / 1.337 GB, free: 6.449 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.098e-05/0.3348, allocations: 28.38 kB / 1.337 GB, free: 6.422 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000934/0.3358, allocations: 0.6861 MB / 1.337 GB, free: 5.66 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.3358, allocations: 7.938 kB / 1.337 GB, free: 5.652 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.636e-05/0.3358, allocations: 23.98 kB / 1.337 GB, free: 5.629 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.257e-05/0.3359, allocations: 24.64 kB / 1.337 GB, free: 5.605 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006232/0.3365, allocations: 390.3 kB / 1.338 GB, free: 5.227 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002581/0.3391, allocations: 1.738 MB / 1.34 GB, free: 3.406 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005429/0.3396, allocations: 235.4 kB / 1.34 GB, free: 3.168 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.3398, allocations: 96.81 kB / 1.34 GB, free: 3.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.3398, allocations: 4 kB / 1.34 GB, free: 3.066 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.3399, allocations: 34.56 kB / 1.34 GB, free: 3.023 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.923e-06/0.3399, allocations: 3.938 kB / 1.34 GB, free: 3.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=23): time 0.002227/0.3421, allocations: 0.9042 MB / 1.341 GB, free: 2.074 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.3421, allocations: 51.41 kB / 1.341 GB, free: 2.012 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003454/0.3425, allocations: 312.4 kB / 1.341 GB, free: 1.695 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.3425, allocations: 29.7 kB / 1.341 GB, free: 1.66 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.3427, allocations: 236.1 kB / 1.341 GB, free: 1.422 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.477e-05/0.3427, allocations: 87.27 kB / 1.341 GB, free: 1.336 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.3429, allocations: 65.92 kB / 1.341 GB, free: 1.262 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.343, allocations: 346.8 kB / 1.342 GB, free: 0.9141 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.3432, allocations: 100.6 kB / 1.342 GB, free: 0.8164 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.3434, allocations: 191.8 kB / 1.342 GB, free: 0.5898 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004295/0.3439, allocations: 321.1 kB / 1.342 GB, free: 248 kB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3439, allocations: 0 / 1.342 GB, free: 248 kB / 1.029 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008473/0.3447, allocations: 442.1 kB / 1.343 GB, free: 15.8 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.3447, allocations: 8 kB / 1.343 GB, free: 15.79 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3447, allocations: 4 kB / 1.343 GB, free: 15.79 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000389/0.3451, allocations: 94.5 kB / 1.343 GB, free: 15.68 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003064/0.3454, allocations: 59.91 kB / 1.343 GB, free: 15.62 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003596/0.349, allocations: 4.074 MB / 1.347 GB, free: 11.21 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.3493, allocations: 8.031 kB / 1.347 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.3493, allocations: 19.94 kB / 1.347 GB, free: 11.18 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002411/0.3496, allocations: 178.9 kB / 1.347 GB, free: 11 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.462e-05/0.3496, allocations: 35.75 kB / 1.347 GB, free: 10.96 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.258e-05/0.3497, allocations: 38.41 kB / 1.347 GB, free: 10.92 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-06/0.3497, allocations: 4.094 kB / 1.347 GB, free: 10.92 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3497, allocations: 4 kB / 1.347 GB, free: 10.91 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.3497, allocations: 3.984 kB / 1.347 GB, free: 10.91 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004649/0.3502, allocations: 336.6 kB / 1.348 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3502, allocations: 7.938 kB / 1.348 GB, free: 10.53 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.3504, allocations: 31.92 kB / 1.348 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003391/0.3508, allocations: 94.5 kB / 1.348 GB, free: 10.4 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.3508, allocations: 4 kB / 1.348 GB, free: 10.39 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003432/0.3542, allocations: 4.077 MB / 1.352 GB, free: 5.973 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3542, allocations: 3.938 kB / 1.352 GB, free: 5.969 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009091/0.3551, allocations: 0.5462 MB / 1.352 GB, free: 5.398 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.3553, allocations: 51.81 kB / 1.352 GB, free: 5.348 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.051e-05/0.3553, allocations: 4.219 kB / 1.352 GB, free: 5.344 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.3555, allocations: 15.98 kB / 1.352 GB, free: 5.328 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.5e-05/0.3556, allocations: 23.83 kB / 1.352 GB, free: 5.305 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.3556, allocations: 4 kB / 1.352 GB, free: 5.301 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002581/0.3559, allocations: 219 kB / 1.353 GB, free: 5.086 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3559, allocations: 0 / 1.353 GB, free: 5.086 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004925/0.3564, allocations: 96 kB / 1.353 GB, free: 4.992 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001216/0.3576, allocations: 1.095 MB / 1.354 GB, free: 3.863 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009734/0.3585, allocations: 0.5941 MB / 1.354 GB, free: 3.23 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3585, allocations: 8.062 kB / 1.354 GB, free: 3.223 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0005463/0.3591, allocations: 463.7 kB / 1.355 GB, free: 2.73 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005333/0.3596, allocations: 80.14 kB / 1.355 GB, free: 2.66 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004646/0.3643, allocations: 3.372 MB / 1.358 GB, free: 15.11 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.3645, allocations: 228.7 kB / 1.358 GB, free: 14.87 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0002177/0.3647, allocations: 58.91 kB / 1.358 GB, free: 14.82 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.3649, allocations: 115.4 kB / 1.358 GB, free: 14.7 MB / 1.061 GB Notification: Performance of SimCode: time 6.81e-07/0.3649, allocations: 0 / 1.358 GB, free: 14.7 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04655/0.4115, allocations: 8.874 MB / 1.367 GB, free: 6.051 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.2, allocations: 10.42 kB / 1.367 GB, free: 6.047 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.83159641799284]