Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Resistance,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance",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.001494/0.001494, allocations: 108 kB / 15.6 MB, free: 132 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.001159/0.001159, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.323/2.323, allocations: 390.2 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 59.91 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5727/0.5741, allocations: 140.4 MB / 0.9497 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003808/0.5779, allocations: 3.07 MB / 0.9527 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001692/0.5796, allocations: 1.316 MB / 0.954 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.5798, allocations: 4.062 kB / 0.954 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008736/0.5806, allocations: 340.1 kB / 0.9543 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002571/0.5809, allocations: 143.5 kB / 0.9545 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.5812, allocations: 143.4 kB / 0.9546 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002594/0.5815, allocations: 307.9 kB / 0.9549 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003505/0.5818, allocations: 242 kB / 0.9551 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.5819, allocations: 126 kB / 0.9552 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.5822, allocations: 133.9 kB / 0.9554 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.555e-05/0.5822, allocations: 17.72 kB / 0.9554 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000235/0.5825, allocations: 170.4 kB / 0.9556 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.457e-05/0.5825, allocations: 79.11 kB / 0.9556 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.626e-05/0.5826, allocations: 118.6 kB / 0.9557 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003087/0.583, allocations: 324 kB / 0.9561 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.583, allocations: 0 / 0.9561 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.82e-07/0.583, allocations: 0 / 0.9561 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.77e-06/0.583, allocations: 5.312 kB / 0.9561 GB, free: 4.449 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006425/0.5836, allocations: 0.5155 MB / 0.9566 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.5837, allocations: 9.562 kB / 0.9566 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.854e-05/0.5837, allocations: 53.89 kB / 0.9566 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005586/0.5843, allocations: 80.17 kB / 0.9567 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.5845, allocations: 256.2 kB / 0.9569 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.5846, allocations: 12.12 kB / 0.957 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.252e-05/0.5846, allocations: 20.28 kB / 0.957 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003758/0.585, allocations: 301.4 kB / 0.9573 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.585, allocations: 1.438 kB / 0.9573 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.6e-05/0.585, allocations: 9.422 kB / 0.9573 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.331e-05/0.5851, allocations: 26.11 kB / 0.9573 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002843/0.5854, allocations: 192.8 kB / 0.9575 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.5865, allocations: 1.46 MB / 0.9589 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.5867, allocations: 177 kB / 0.9591 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.206e-05/0.5867, allocations: 35.61 kB / 0.9591 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.5868, allocations: 5.781 kB / 0.9591 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.802e-05/0.5868, allocations: 36.64 kB / 0.9591 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.5868, allocations: 0 / 0.9591 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004326/0.5872, allocations: 225.2 kB / 0.9594 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.871e-05/0.5873, allocations: 60.66 kB / 0.9594 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.5874, allocations: 191.1 kB / 0.9596 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.5874, allocations: 26.8 kB / 0.9596 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.717e-05/0.5875, allocations: 164 kB / 0.9598 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.475e-05/0.5875, allocations: 22.86 kB / 0.9598 GB, free: 1 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.5876, allocations: 41.31 kB / 0.9598 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.923e-05/0.5876, allocations: 331.4 kB / 0.9602 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.993e-05/0.5877, allocations: 33.69 kB / 0.9602 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.323e-05/0.5878, allocations: 99.5 kB / 0.9603 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.5879, allocations: 150 kB / 0.9604 GB, free: 396 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5879, allocations: 1.125 kB / 0.9604 GB, free: 396 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002669/0.5882, allocations: 187.1 kB / 0.9606 GB, free: 280 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.5882, allocations: 5.969 kB / 0.9606 GB, free: 280 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.5882, allocations: 2.438 kB / 0.9606 GB, free: 280 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001396/0.5884, allocations: 33.64 kB / 0.9607 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.5885, allocations: 21.97 kB / 0.9607 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009603/0.5895, allocations: 1.416 MB / 0.9621 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.5896, allocations: 29.23 kB / 0.9621 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.5896, allocations: 10.22 kB / 0.9621 GB, free: 14.77 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001306/0.5898, allocations: 154.2 kB / 0.9622 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.946e-05/0.5898, allocations: 10.66 kB / 0.9623 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.834e-05/0.5898, allocations: 17.42 kB / 0.9623 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.5898, allocations: 4.938 kB / 0.9623 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.5898, allocations: 0.8438 kB / 0.9623 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.5899, allocations: 5.094 kB / 0.9623 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005027/0.5904, allocations: 449.3 kB / 0.9627 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.5904, allocations: 4 kB / 0.9627 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.041e-05/0.5904, allocations: 6.344 kB / 0.9627 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.806e-05/0.5905, allocations: 22.69 kB / 0.9627 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.5905, allocations: 1.062 kB / 0.9627 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009727/0.5915, allocations: 1.415 MB / 0.9641 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.5915, allocations: 1.125 kB / 0.9641 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.5917, allocations: 216.5 kB / 0.9643 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.916e-05/0.5918, allocations: 103.2 kB / 0.9644 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.5918, allocations: 1.094 kB / 0.9644 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.592, allocations: 2.25 kB / 0.9644 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.965e-05/0.592, allocations: 6.625 kB / 0.9644 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.383e-06/0.592, allocations: 6.891 kB / 0.9644 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001249/0.5921, allocations: 150.3 kB / 0.9646 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5921, allocations: 5.094 kB / 0.9646 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003294/0.5925, allocations: 52.12 kB / 0.9646 GB, free: 12.27 MB / 0.7325 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004926/0.593, allocations: 0.7423 MB / 0.9654 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003425/0.5933, allocations: 216.2 kB / 0.9656 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5933, allocations: 1 kB / 0.9656 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.5935, allocations: 144.3 kB / 0.9657 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.5939, allocations: 37.88 kB / 0.9657 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/0.5959, allocations: 2.044 MB / 0.9677 GB, free: 9.484 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.5962, allocations: 0.7475 MB / 0.9685 GB, free: 8.754 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001022/0.5963, allocations: 29.75 kB / 0.9685 GB, free: 8.734 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.252e-05/0.5964, allocations: 51.14 kB / 0.9685 GB, free: 8.695 MB / 0.7325 GB Notification: Performance of SimCode: time 1.663e-06/0.5964, allocations: 0 / 0.9685 GB, free: 8.695 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.6206, allocations: 3.63 MB / 0.9721 GB, free: 6.855 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.119/9.74, allocations: 4.562 kB / 0.9721 GB, free: 6.855 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches