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.001829/0.001829, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002831/0.002831, allocations: 210.5 kB / 22.24 MB, free: 4.859 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.477/1.477, allocations: 230.6 MB / 256 MB, free: 7.801 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.236/3.236, allocations: 0.4892 GB / 0.7944 GB, free: 35.62 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.002277/0.002277, allocations: 71.3 kB / 1.153 GB, free: 25.93 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.3535, allocations: 176.1 MB / 1.325 GB, free: 2.574 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006704/0.3602, allocations: 4.284 MB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003474/0.3636, allocations: 1.831 MB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002931/0.3639, allocations: 15.88 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001829/0.3658, allocations: 0.5949 MB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000701/0.3665, allocations: 270.6 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007178/0.3672, allocations: 251.4 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0008449/0.368, allocations: 0.6112 MB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000657/0.3687, allocations: 343.4 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003864/0.3691, allocations: 259.1 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005641/0.3696, allocations: 263 kB / 1.334 GB, free: 9.852 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 9.676e-05/0.3697, allocations: 36 kB / 1.334 GB, free: 9.816 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004755/0.3702, allocations: 231.5 kB / 1.334 GB, free: 9.59 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.3704, allocations: 159.5 kB / 1.334 GB, free: 9.434 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.3707, allocations: 183.2 kB / 1.334 GB, free: 9.254 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000897/0.3716, allocations: 0.6032 MB / 1.335 GB, free: 8.648 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.3716, allocations: 8 kB / 1.335 GB, free: 8.641 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3716, allocations: 0 / 1.335 GB, free: 8.641 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.842e-05/0.3716, allocations: 0 / 1.335 GB, free: 8.641 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.001416/0.373, allocations: 0.6609 MB / 1.335 GB, free: 7.949 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.373, allocations: 15.97 kB / 1.335 GB, free: 7.934 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.742e-05/0.3731, allocations: 70.72 kB / 1.335 GB, free: 7.855 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001/0.3741, allocations: 160.4 kB / 1.336 GB, free: 7.699 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005558/0.3747, allocations: 280.8 kB / 1.336 GB, free: 7.398 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.3747, allocations: 21.38 kB / 1.336 GB, free: 7.379 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.132e-05/0.3748, allocations: 36.36 kB / 1.336 GB, free: 7.344 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009782/0.3758, allocations: 0.6822 MB / 1.337 GB, free: 6.586 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.3758, allocations: 0 / 1.337 GB, free: 6.586 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.3758, allocations: 15.98 kB / 1.337 GB, free: 6.57 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.251e-05/0.3759, allocations: 32.64 kB / 1.337 GB, free: 6.539 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006613/0.3765, allocations: 394.3 kB / 1.337 GB, free: 6.156 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002677/0.3792, allocations: 1.734 MB / 1.339 GB, free: 4.34 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005505/0.3798, allocations: 235.8 kB / 1.339 GB, free: 4.102 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.3799, allocations: 100.8 kB / 1.339 GB, free: 4 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.38, allocations: 4 kB / 1.339 GB, free: 3.996 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.38, allocations: 34.56 kB / 1.339 GB, free: 3.953 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.733e-06/0.38, allocations: 0 / 1.339 GB, free: 3.953 MB / 1.029 GB Notification: Performance of matching and sorting (n=23): time 0.002221/0.3822, allocations: 0.9049 MB / 1.34 GB, free: 3.008 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.3823, allocations: 51.41 kB / 1.34 GB, free: 2.945 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003906/0.3827, allocations: 312.4 kB / 1.34 GB, free: 2.629 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.3827, allocations: 29.7 kB / 1.34 GB, free: 2.594 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.3829, allocations: 232.1 kB / 1.341 GB, free: 2.359 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.069e-05/0.383, allocations: 95.19 kB / 1.341 GB, free: 2.266 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.3831, allocations: 61.98 kB / 1.341 GB, free: 2.195 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3832, allocations: 342.8 kB / 1.341 GB, free: 1.852 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.3834, allocations: 100.6 kB / 1.341 GB, free: 1.754 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002597/0.3837, allocations: 191.7 kB / 1.341 GB, free: 1.527 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004541/0.3841, allocations: 316.4 kB / 1.342 GB, free: 1.184 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3841, allocations: 4 kB / 1.342 GB, free: 1.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008029/0.3849, allocations: 437.9 kB / 1.342 GB, free: 0.7383 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.385, allocations: 10.19 kB / 1.342 GB, free: 0.7305 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.385, allocations: 4.344 kB / 1.342 GB, free: 0.7266 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003679/0.3853, allocations: 98.44 kB / 1.342 GB, free: 0.6211 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.3856, allocations: 63.91 kB / 1.342 GB, free: 0.5586 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003688/0.3893, allocations: 4.074 MB / 1.346 GB, free: 12.14 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/0.3896, allocations: 8.281 kB / 1.346 GB, free: 12.13 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.615e-05/0.3896, allocations: 20 kB / 1.346 GB, free: 12.11 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.000234/0.3898, allocations: 174.9 kB / 1.346 GB, free: 11.93 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.872e-05/0.3899, allocations: 35.75 kB / 1.346 GB, free: 11.9 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.219e-05/0.39, allocations: 38.41 kB / 1.346 GB, free: 11.86 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.39, allocations: 4 kB / 1.346 GB, free: 11.86 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.39, allocations: 3.938 kB / 1.346 GB, free: 11.85 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.39, allocations: 0 / 1.346 GB, free: 11.85 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005244/0.3905, allocations: 344.6 kB / 1.347 GB, free: 11.47 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3905, allocations: 3.938 kB / 1.347 GB, free: 11.47 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001907/0.3907, allocations: 31.98 kB / 1.347 GB, free: 11.44 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00036/0.3911, allocations: 94.44 kB / 1.347 GB, free: 11.34 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.3911, allocations: 8 kB / 1.347 GB, free: 11.33 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003679/0.3948, allocations: 4.065 MB / 1.351 GB, free: 6.918 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.3948, allocations: 3.938 kB / 1.351 GB, free: 6.914 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008972/0.3957, allocations: 0.5581 MB / 1.351 GB, free: 6.332 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.3958, allocations: 47.81 kB / 1.351 GB, free: 6.285 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.3959, allocations: 8 kB / 1.351 GB, free: 6.277 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/0.3961, allocations: 11.98 kB / 1.351 GB, free: 6.266 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.3961, allocations: 27.98 kB / 1.352 GB, free: 6.238 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.3961, allocations: 11.94 kB / 1.352 GB, free: 6.227 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002416/0.3964, allocations: 215 kB / 1.352 GB, free: 6.016 MB / 1.045 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3964, allocations: 0 / 1.352 GB, free: 6.016 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004793/0.3969, allocations: 100 kB / 1.352 GB, free: 5.918 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.001238/0.3981, allocations: 1.1 MB / 1.353 GB, free: 4.785 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009427/0.399, allocations: 0.5867 MB / 1.353 GB, free: 4.16 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.399, allocations: 4.75 kB / 1.353 GB, free: 4.156 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0005824/0.3996, allocations: 467.8 kB / 1.354 GB, free: 3.66 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.4002, allocations: 70.27 kB / 1.354 GB, free: 3.594 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004835/0.405, allocations: 3.383 MB / 1.357 GB, free: 44 kB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002886/0.4053, allocations: 232.7 kB / 1.358 GB, free: 15.8 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0002121/0.4055, allocations: 50.94 kB / 1.358 GB, free: 15.75 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.4057, allocations: 111.4 kB / 1.358 GB, free: 15.64 MB / 1.061 GB Notification: Performance of SimCode: time 8.41e-07/0.4057, allocations: 3.938 kB / 1.358 GB, free: 15.64 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05728/0.4629, allocations: 8.765 MB / 1.366 GB, free: 7.102 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.23, allocations: 6.969 kB / 1.366 GB, free: 7.098 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: 19.121077690739185]