Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_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.001643/0.001643, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.38/1.38, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.716/2.716, allocations: 469.4 MB / 0.742 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 64.52 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2879, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006553/0.2945, allocations: 4.353 MB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003106/0.2976, allocations: 1.85 MB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002761/0.2979, allocations: 11.94 kB / 1.07 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001636/0.2996, allocations: 0.6092 MB / 1.07 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0006621/0.3003, allocations: 262.6 kB / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006395/0.3009, allocations: 243.4 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007237/0.3016, allocations: 0.6151 MB / 1.071 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007072/0.3024, allocations: 479 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003147/0.3027, allocations: 247.2 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004417/0.3031, allocations: 267 kB / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.483e-05/0.3032, allocations: 36 kB / 1.072 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004516/0.3037, allocations: 251.4 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.3038, allocations: 155.6 kB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002349/0.3041, allocations: 218.9 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007269/0.3048, allocations: 0.5958 MB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3048, allocations: 0 / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3048, allocations: 4 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.828e-05/0.3049, allocations: 0 / 1.074 GB, free: 4.359 MB / 0.8262 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.3063, allocations: 0.7251 MB / 1.074 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.3063, allocations: 8.031 kB / 1.074 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.377e-05/0.3064, allocations: 74.72 kB / 1.074 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.3075, allocations: 156.2 kB / 1.075 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.3079, allocations: 326.5 kB / 1.075 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.308, allocations: 25.38 kB / 1.075 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.279e-05/0.308, allocations: 36.38 kB / 1.075 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008086/0.3089, allocations: 0.5316 MB / 1.075 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.3089, allocations: 3.938 kB / 1.075 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.225e-05/0.3089, allocations: 15.98 kB / 1.075 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.977e-05/0.309, allocations: 32.64 kB / 1.075 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006064/0.3096, allocations: 386.3 kB / 1.076 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002642/0.3122, allocations: 2.407 MB / 1.078 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005278/0.3128, allocations: 258.5 kB / 1.078 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.313, allocations: 116.8 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.416e-05/0.313, allocations: 0 / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.313, allocations: 38.5 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.313, allocations: 0 / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23): time 0.002287/0.3153, allocations: 1.132 MB / 1.08 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.3154, allocations: 59.34 kB / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003052/0.3157, allocations: 308.3 kB / 1.08 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.3157, allocations: 29.7 kB / 1.08 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.3159, allocations: 223.6 kB / 1.08 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.425e-05/0.3159, allocations: 82.81 kB / 1.08 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.316, allocations: 62.03 kB / 1.08 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.3162, allocations: 338.8 kB / 1.081 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.3164, allocations: 104.6 kB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.3166, allocations: 191.7 kB / 1.081 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003937/0.317, allocations: 323.4 kB / 1.081 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.317, allocations: 0 / 1.081 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007581/0.3178, allocations: 437.8 kB / 1.082 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3178, allocations: 8 kB / 1.082 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3178, allocations: 7.984 kB / 1.082 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003741/0.3182, allocations: 98.77 kB / 1.082 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.3185, allocations: 63.91 kB / 1.082 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003287/0.3218, allocations: 4.399 MB / 1.086 GB, free: 6.402 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.322, allocations: 8 kB / 1.086 GB, free: 6.395 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.322, allocations: 12 kB / 1.086 GB, free: 6.383 MB / 0.8419 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.0001978/0.3222, allocations: 187.5 kB / 1.086 GB, free: 6.191 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.474e-05/0.3223, allocations: 39.56 kB / 1.086 GB, free: 6.152 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.831e-05/0.3224, allocations: 34.31 kB / 1.086 GB, free: 6.121 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3224, allocations: 4 kB / 1.086 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3224, allocations: 0 / 1.086 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3224, allocations: 4 kB / 1.086 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004494/0.3228, allocations: 401.3 kB / 1.087 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3229, allocations: 3.938 kB / 1.087 GB, free: 5.668 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.3231, allocations: 35.97 kB / 1.087 GB, free: 5.633 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003055/0.3234, allocations: 90.5 kB / 1.087 GB, free: 5.535 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.3234, allocations: 8 kB / 1.087 GB, free: 5.527 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003078/0.3265, allocations: 4.388 MB / 1.091 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3265, allocations: 3.938 kB / 1.091 GB, free: 0.7148 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007825/0.3273, allocations: 0.5521 MB / 1.092 GB, free: 140 kB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.3274, allocations: 128.7 kB / 1.092 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.959e-05/0.3275, allocations: 3.938 kB / 1.092 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.3277, allocations: 12 kB / 1.092 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.3278, allocations: 19.91 kB / 1.092 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.3278, allocations: 8 kB / 1.092 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002065/0.328, allocations: 218.9 kB / 1.092 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.328, allocations: 4.062 kB / 1.092 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004367/0.3284, allocations: 96 kB / 1.092 GB, free: 15.64 MB / 0.8575 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.001065/0.3295, allocations: 1.097 MB / 1.093 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0008544/0.3304, allocations: 0.6214 MB / 1.094 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3304, allocations: 0 / 1.094 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0005172/0.3309, allocations: 482.6 kB / 1.094 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004874/0.3314, allocations: 79.09 kB / 1.095 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004244/0.3357, allocations: 3.391 MB / 1.098 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.3361, allocations: 0.835 MB / 1.099 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002125/0.3363, allocations: 58.92 kB / 1.099 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.3365, allocations: 111.4 kB / 1.099 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of SimCode: time 5.01e-07/0.3365, allocations: 0 / 1.099 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04059/0.3771, allocations: 7.65 MB / 1.106 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.104/9.482, allocations: 6.172 kB / 1.106 GB, free: 1.176 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches