Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.OnePhase.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_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.007253/0.007254, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001891/0.001891, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.178/2.178, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.91 kB / 0.9504 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6452/0.6465, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.006283/0.6528, allocations: 6.09 MB / 1.093 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00426/0.6571, allocations: 3.135 MB / 1.096 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002445/0.6574, allocations: 29.22 kB / 1.097 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002337/0.6597, allocations: 0.9268 MB / 1.097 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.0008942/0.6606, allocations: 0.4897 MB / 1.098 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009701/0.6616, allocations: 487.3 kB / 1.098 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001063/0.6627, allocations: 1.095 MB / 1.099 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000838/0.6635, allocations: 0.6358 MB / 1.1 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004921/0.664, allocations: 437.6 kB / 1.1 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005605/0.6646, allocations: 474.4 kB / 1.101 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 9.14e-05/0.6647, allocations: 58.06 kB / 1.101 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007459/0.6655, allocations: 490.1 kB / 1.101 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002952/0.6658, allocations: 286.9 kB / 1.102 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004089/0.6662, allocations: 405.5 kB / 1.102 GB, free: 12.26 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001442/0.6676, allocations: 1.179 MB / 1.103 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.6676, allocations: 4.781 kB / 1.103 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.032e-06/0.6676, allocations: 0 / 1.103 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.317e-05/0.6677, allocations: 0.6562 kB / 1.103 GB, free: 11.85 MB / 0.8731 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.001605/0.6693, allocations: 1.072 MB / 1.104 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.6693, allocations: 14.81 kB / 1.104 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001478/0.6695, allocations: 120.9 kB / 1.104 GB, free: 10.97 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001533/0.671, allocations: 223.2 kB / 1.105 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009537/0.672, allocations: 0.5813 MB / 1.105 GB, free: 10.54 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/0.672, allocations: 50.61 kB / 1.105 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.6721, allocations: 69.8 kB / 1.105 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.6736, allocations: 1.028 MB / 1.106 GB, free: 9.883 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.555e-05/0.6737, allocations: 8.891 kB / 1.106 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.347e-05/0.6737, allocations: 36.61 kB / 1.106 GB, free: 9.852 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.04e-05/0.6738, allocations: 65.42 kB / 1.106 GB, free: 9.848 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.6749, allocations: 0.691 MB / 1.107 GB, free: 9.602 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004961/0.6799, allocations: 5.742 MB / 1.113 GB, free: 4.629 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008309/0.6807, allocations: 0.598 MB / 1.113 GB, free: 4.254 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008269/0.6816, allocations: 432.5 kB / 1.114 GB, free: 4.113 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.6816, allocations: 4.562 kB / 1.114 GB, free: 4.113 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.6816, allocations: 37.25 kB / 1.114 GB, free: 4.07 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=41): time 1.543e-06/0.6817, allocations: 0 / 1.114 GB, free: 4.07 MB / 0.8731 GB Notification: Performance of matching and sorting (n=42): time 0.004378/0.686, allocations: 2.021 MB / 1.116 GB, free: 3.027 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.6861, allocations: 60.62 kB / 1.116 GB, free: 2.961 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004554/0.6866, allocations: 454 kB / 1.116 GB, free: 2.75 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/0.6866, allocations: 35.08 kB / 1.116 GB, free: 2.711 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.6868, allocations: 394.6 kB / 1.117 GB, free: 2.395 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.687, allocations: 160.2 kB / 1.117 GB, free: 2.27 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.6871, allocations: 111.7 kB / 1.117 GB, free: 2.207 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.6873, allocations: 361.1 kB / 1.117 GB, free: 1.875 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003591/0.6877, allocations: 250.5 kB / 1.117 GB, free: 1.785 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004758/0.6881, allocations: 447.4 kB / 1.118 GB, free: 1.438 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000925/0.6891, allocations: 0.7484 MB / 1.119 GB, free: 0.9258 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.6891, allocations: 2.562 kB / 1.119 GB, free: 0.9258 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001831/0.6909, allocations: 1.042 MB / 1.12 GB, free: 500 kB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.6909, allocations: 8.094 kB / 1.12 GB, free: 500 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.691, allocations: 12.06 kB / 1.12 GB, free: 496 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009998/0.692, allocations: 318.7 kB / 1.12 GB, free: 396 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/0.6923, allocations: 93.95 kB / 1.12 GB, free: 388 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007024/0.6993, allocations: 7.49 MB / 1.127 GB, free: 9.984 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003547/0.6997, allocations: 29 kB / 1.127 GB, free: 9.977 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.265e-05/0.6998, allocations: 25.03 kB / 1.127 GB, free: 9.973 MB / 0.8887 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.0002811/0.7, allocations: 241.5 kB / 1.128 GB, free: 9.797 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.75e-05/0.7001, allocations: 69.31 kB / 1.128 GB, free: 9.758 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/0.7018, allocations: 0.8937 MB / 1.129 GB, free: 9.371 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.7018, allocations: 4.312 kB / 1.129 GB, free: 9.371 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.7019, allocations: 4.219 kB / 1.129 GB, free: 9.371 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.7019, allocations: 0 / 1.129 GB, free: 9.371 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002648/0.7045, allocations: 1.679 MB / 1.13 GB, free: 8.516 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.7045, allocations: 6.188 kB / 1.13 GB, free: 8.512 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.7047, allocations: 41.62 kB / 1.13 GB, free: 8.508 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009046/0.7056, allocations: 306.2 kB / 1.131 GB, free: 8.414 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.293e-05/0.7057, allocations: 7.438 kB / 1.131 GB, free: 8.41 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006873/0.7126, allocations: 7.481 MB / 1.138 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.7126, allocations: 5.344 kB / 1.138 GB, free: 2.027 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.7142, allocations: 0.9888 MB / 1.139 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002534/0.7145, allocations: 174.6 kB / 1.139 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.432e-05/0.7145, allocations: 16.72 kB / 1.139 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002918/0.7148, allocations: 23.41 kB / 1.139 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.132e-05/0.7149, allocations: 47.8 kB / 1.139 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.715, allocations: 9.344 kB / 1.139 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.000324/0.7153, allocations: 307.4 kB / 1.139 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7153, allocations: 0 / 1.139 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0007008/0.716, allocations: 194.2 kB / 1.14 GB, free: 1.172 MB / 0.8887 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.001876/0.7179, allocations: 1.546 MB / 1.141 GB, free: 112 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001774/0.7197, allocations: 1.193 MB / 1.142 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.7197, allocations: 1.156 kB / 1.142 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.7209, allocations: 0.866 MB / 1.143 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009988/0.7219, allocations: 203.2 kB / 1.143 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007695/0.7296, allocations: 5.856 MB / 1.149 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006093/0.7302, allocations: 0.9872 MB / 1.15 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0002675/0.7305, allocations: 100.9 kB / 1.15 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/0.7308, allocations: 222.3 kB / 1.15 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of SimCode: time 3.8e-07/0.7308, allocations: 4 kB / 1.15 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04006/0.7709, allocations: 15.28 MB / 1.165 GB, free: 4.934 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.689/10.46, allocations: 6.359 kB / 1.165 GB, free: 4.93 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.OnePhase.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_OnePhase_Lines_Examples_ACLine_L.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches