Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004774/0.004774, allocations: 100.6 kB / 15.73 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 189.8 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.359/2.359, allocations: 437.1 MB / 0.7106 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001755, allocations: 67.89 kB / 1.018 GB, free: 9.898 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6832/0.6849, allocations: 151.6 MB / 1.166 GB, free: 3.785 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005584/0.6905, allocations: 4.346 MB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.00251/0.6931, allocations: 1.862 MB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.6932, allocations: 11.94 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001456/0.6947, allocations: 0.6008 MB / 1.173 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0004591/0.6951, allocations: 258.6 kB / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005184/0.6957, allocations: 247.4 kB / 1.173 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0006002/0.6963, allocations: 0.6151 MB / 1.174 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006143/0.6969, allocations: 466.5 kB / 1.174 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.6972, allocations: 247.2 kB / 1.175 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004084/0.6976, allocations: 275 kB / 1.175 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 6.059e-05/0.6976, allocations: 36 kB / 1.175 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003774/0.698, allocations: 251.4 kB / 1.175 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001481/0.6982, allocations: 155.6 kB / 1.175 GB, free: 10.42 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000207/0.6984, allocations: 219 kB / 1.175 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006561/0.6991, allocations: 0.6071 MB / 1.176 GB, free: 9.598 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.6991, allocations: 0 / 1.176 GB, free: 9.598 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.052e-06/0.6991, allocations: 0 / 1.176 GB, free: 9.598 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.6991, allocations: 0 / 1.176 GB, free: 9.598 MB / 0.9044 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.001108/0.7002, allocations: 0.7478 MB / 1.177 GB, free: 8.801 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.7002, allocations: 8.625 kB / 1.177 GB, free: 8.793 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.481e-05/0.7003, allocations: 78.7 kB / 1.177 GB, free: 8.707 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008768/0.7012, allocations: 144.5 kB / 1.177 GB, free: 8.566 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.7016, allocations: 338.8 kB / 1.177 GB, free: 8.199 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.7017, allocations: 25.38 kB / 1.177 GB, free: 8.176 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.808e-05/0.7017, allocations: 32.38 kB / 1.177 GB, free: 8.145 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007316/0.7025, allocations: 0.5316 MB / 1.178 GB, free: 7.578 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.7025, allocations: 3.938 kB / 1.178 GB, free: 7.574 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.945e-05/0.7025, allocations: 16 kB / 1.178 GB, free: 7.559 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.424e-05/0.7026, allocations: 32.64 kB / 1.178 GB, free: 7.527 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005626/0.7031, allocations: 390.3 kB / 1.178 GB, free: 7.145 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002366/0.7055, allocations: 2.4 MB / 1.181 GB, free: 4.523 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004825/0.706, allocations: 268.6 kB / 1.181 GB, free: 4.254 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.7062, allocations: 112.8 kB / 1.181 GB, free: 4.141 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.7062, allocations: 0 / 1.181 GB, free: 4.141 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.7062, allocations: 38.56 kB / 1.181 GB, free: 4.094 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=20): time 1.042e-06/0.7062, allocations: 0 / 1.181 GB, free: 4.094 MB / 0.9044 GB Notification: Performance of matching and sorting (n=23): time 0.00202/0.7083, allocations: 1.135 MB / 1.182 GB, free: 2.863 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.7083, allocations: 63.39 kB / 1.182 GB, free: 2.789 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.7086, allocations: 300.5 kB / 1.183 GB, free: 2.492 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.7087, allocations: 29.7 kB / 1.183 GB, free: 2.457 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.7088, allocations: 240.1 kB / 1.183 GB, free: 2.219 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.155e-05/0.7089, allocations: 79.27 kB / 1.183 GB, free: 2.141 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.709, allocations: 65.98 kB / 1.183 GB, free: 2.066 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.7091, allocations: 338.8 kB / 1.183 GB, free: 1.727 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.7093, allocations: 100.6 kB / 1.183 GB, free: 1.629 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.7095, allocations: 187.8 kB / 1.184 GB, free: 1.406 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003926/0.7099, allocations: 311.5 kB / 1.184 GB, free: 1.066 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.7099, allocations: 0 / 1.184 GB, free: 1.066 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007054/0.7106, allocations: 453.8 kB / 1.184 GB, free: 0.6055 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.7106, allocations: 4.344 kB / 1.184 GB, free: 0.6016 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.7107, allocations: 8 kB / 1.184 GB, free: 0.5938 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003187/0.711, allocations: 90.5 kB / 1.184 GB, free: 0.4961 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.7112, allocations: 67.89 kB / 1.184 GB, free: 440 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003276/0.7145, allocations: 4.408 MB / 1.189 GB, free: 11.6 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/0.7147, allocations: 11.98 kB / 1.189 GB, free: 11.59 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.7148, allocations: 12 kB / 1.189 GB, free: 11.57 MB / 0.92 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.0001843/0.7149, allocations: 182.9 kB / 1.189 GB, free: 11.39 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-05/0.715, allocations: 35.75 kB / 1.189 GB, free: 11.35 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.345e-05/0.7151, allocations: 38.31 kB / 1.189 GB, free: 11.31 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.7151, allocations: 0 / 1.189 GB, free: 11.31 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.7151, allocations: 8.062 kB / 1.189 GB, free: 11.3 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.7151, allocations: 0 / 1.189 GB, free: 11.3 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004306/0.7156, allocations: 397.4 kB / 1.189 GB, free: 10.87 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.7156, allocations: 7.875 kB / 1.189 GB, free: 10.86 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.7157, allocations: 31.92 kB / 1.189 GB, free: 10.83 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002832/0.716, allocations: 98.48 kB / 1.19 GB, free: 10.72 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.7161, allocations: 8 kB / 1.19 GB, free: 10.71 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003151/0.7192, allocations: 4.384 MB / 1.194 GB, free: 5.906 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.7192, allocations: 3.938 kB / 1.194 GB, free: 5.902 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007638/0.72, allocations: 0.5572 MB / 1.194 GB, free: 5.32 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.7201, allocations: 125.1 kB / 1.194 GB, free: 5.18 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.468e-05/0.7202, allocations: 4 kB / 1.194 GB, free: 5.176 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.7203, allocations: 8 kB / 1.194 GB, free: 5.168 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.272e-05/0.7204, allocations: 23.95 kB / 1.195 GB, free: 5.145 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.7204, allocations: 4 kB / 1.195 GB, free: 5.141 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002012/0.7206, allocations: 223.1 kB / 1.195 GB, free: 4.926 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7206, allocations: 0 / 1.195 GB, free: 4.926 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003877/0.721, allocations: 96 kB / 1.195 GB, free: 4.832 MB / 0.92 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.001053/0.7221, allocations: 1.108 MB / 1.196 GB, free: 3.691 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0007867/0.7229, allocations: 0.6017 MB / 1.196 GB, free: 3.051 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.7229, allocations: 4 kB / 1.197 GB, free: 3.047 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004812/0.7234, allocations: 475.1 kB / 1.197 GB, free: 2.547 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.7238, allocations: 78.11 kB / 1.197 GB, free: 2.473 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003882/0.7277, allocations: 3.38 MB / 1.2 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004306/0.7282, allocations: 0.8389 MB / 1.201 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001648/0.7283, allocations: 62.92 kB / 1.201 GB, free: 14 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.7285, allocations: 111.4 kB / 1.201 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/0.7285, allocations: 0 / 1.201 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.964/2.692, allocations: 7.768 MB / 1.209 GB, free: 6.27 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.53/19.22, allocations: 22.06 kB / 1.209 GB, free: 6.254 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches