Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.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.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",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.001808/0.001808, 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.002054/0.002054, allocations: 194.9 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.362/2.362, allocations: 390.2 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002218/0.002218, allocations: 67.89 kB / 0.8127 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6361/0.6383, allocations: 140.4 MB / 0.9497 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.006824/0.6452, allocations: 6.15 MB / 0.9557 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005132/0.6504, allocations: 3.177 MB / 0.9588 GB, free: 2 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000701/0.6511, allocations: 29.28 kB / 0.9589 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.002193/0.6534, allocations: 0.9312 MB / 0.9598 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001596/0.655, allocations: 479.2 kB / 0.9602 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001342/0.6563, allocations: 0.4955 MB / 0.9607 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.00142/0.6578, allocations: 1.102 MB / 0.9618 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009197/0.6587, allocations: 0.6456 MB / 0.9624 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005918/0.6593, allocations: 429.2 kB / 0.9628 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005558/0.6599, allocations: 470 kB / 0.9633 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.66, allocations: 58.41 kB / 0.9633 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001055/0.661, allocations: 491.1 kB / 0.9638 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000279/0.6613, allocations: 289.5 kB / 0.9641 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000422/0.6618, allocations: 404.3 kB / 0.9645 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001311/0.6631, allocations: 1.163 MB / 0.9656 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.6631, allocations: 4.844 kB / 0.9656 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.403e-06/0.6631, allocations: 0 / 0.9656 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.205e-05/0.6631, allocations: 0 / 0.9656 GB, free: 13.54 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001644/0.6648, allocations: 1.062 MB / 0.9666 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.6648, allocations: 10.06 kB / 0.9667 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001434/0.665, allocations: 108.5 kB / 0.9668 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/0.6665, allocations: 221.5 kB / 0.967 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008153/0.6674, allocations: 0.5428 MB / 0.9675 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.271e-05/0.6674, allocations: 47.27 kB / 0.9675 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.6675, allocations: 72.89 kB / 0.9676 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.669, allocations: 1.029 MB / 0.9686 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/0.669, allocations: 8.125 kB / 0.9686 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.076e-05/0.6691, allocations: 27.98 kB / 0.9687 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.169e-05/0.6692, allocations: 71.45 kB / 0.9687 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.6703, allocations: 0.6945 MB / 0.9694 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004854/0.6751, allocations: 5.755 MB / 0.975 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008166/0.676, allocations: 0.5967 MB / 0.9756 GB, free: 5 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007623/0.6767, allocations: 417.8 kB / 0.976 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.6768, allocations: 7.938 kB / 0.976 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.6768, allocations: 41.19 kB / 0.9761 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=41): time 2.736e-06/0.6768, allocations: 0 / 0.9761 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.004504/0.6813, allocations: 2.061 MB / 0.9781 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.6814, allocations: 55.12 kB / 0.9781 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004563/0.6819, allocations: 461.9 kB / 0.9786 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.6819, allocations: 40.34 kB / 0.9786 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/0.6821, allocations: 388.8 kB / 0.979 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.6822, allocations: 145.9 kB / 0.9791 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.6824, allocations: 104.8 kB / 0.9792 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.6825, allocations: 363.2 kB / 0.9796 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003409/0.6829, allocations: 252.5 kB / 0.9798 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/0.6833, allocations: 459.7 kB / 0.9802 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008574/0.6842, allocations: 0.7519 MB / 0.981 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.6842, allocations: 4 kB / 0.981 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001817/0.686, allocations: 1.065 MB / 0.982 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.6861, allocations: 8 kB / 0.982 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.6861, allocations: 8.875 kB / 0.982 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.6871, allocations: 335 kB / 0.9823 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003146/0.6874, allocations: 99.81 kB / 0.9824 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006704/0.6942, allocations: 7.519 MB / 0.9898 GB, free: 7.129 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000523/0.6947, allocations: 40.02 kB / 0.9898 GB, free: 7.09 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.041e-05/0.6948, allocations: 24 kB / 0.9898 GB, free: 7.066 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003441/0.6951, allocations: 249.8 kB / 0.9901 GB, free: 6.812 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.288e-05/0.6952, allocations: 63.19 kB / 0.9901 GB, free: 6.75 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.6969, allocations: 0.9195 MB / 0.991 GB, free: 5.809 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.6969, allocations: 4 kB / 0.991 GB, free: 5.805 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.6969, allocations: 4 kB / 0.991 GB, free: 5.801 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.6969, allocations: 0 / 0.991 GB, free: 5.801 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002549/0.6995, allocations: 1.704 MB / 0.9927 GB, free: 4.008 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.6995, allocations: 0 / 0.9927 GB, free: 4.008 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.6996, allocations: 43.91 kB / 0.9928 GB, free: 3.965 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009351/0.7006, allocations: 327.4 kB / 0.9931 GB, free: 3.633 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/0.7006, allocations: 8 kB / 0.9931 GB, free: 3.625 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006892/0.7075, allocations: 7.505 MB / 1 GB, free: 11.56 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/0.7076, allocations: 0 / 1 GB, free: 11.56 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001642/0.7092, allocations: 1.027 MB / 1.001 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002565/0.7095, allocations: 172.4 kB / 1.002 GB, free: 10.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.737e-05/0.7096, allocations: 8 kB / 1.002 GB, free: 10.29 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002978/0.7099, allocations: 27.91 kB / 1.002 GB, free: 10.26 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.458e-05/0.71, allocations: 39.89 kB / 1.002 GB, free: 10.22 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.71, allocations: 16 kB / 1.002 GB, free: 10.21 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003213/0.7103, allocations: 314.8 kB / 1.002 GB, free: 9.902 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7104, allocations: 4 kB / 1.002 GB, free: 9.898 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008168/0.7112, allocations: 196 kB / 1.002 GB, free: 9.707 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001854/0.713, allocations: 1.555 MB / 1.004 GB, free: 8.094 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001993/0.715, allocations: 1.25 MB / 1.005 GB, free: 6.793 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.7151, allocations: 0 / 1.005 GB, free: 6.793 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001167/0.7162, allocations: 0.8699 MB / 1.006 GB, free: 5.871 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.7173, allocations: 211.4 kB / 1.006 GB, free: 5.672 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008102/0.7254, allocations: 5.982 MB / 1.012 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006711/0.7261, allocations: 0.9959 MB / 1.013 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0003146/0.7264, allocations: 97.28 kB / 1.013 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.7267, allocations: 227.4 kB / 1.013 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of SimCode: time 2.805e-06/0.7267, allocations: 4 kB / 1.013 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04258/0.7693, allocations: 15.3 MB / 1.028 GB, free: 14.99 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 10/10.77, allocations: 9.062 kB / 1.028 GB, free: 14.99 MB / 0.795 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_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_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches