Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",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.001326/0.001326, 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.001299/0.001299, allocations: 196.6 kB / 16.53 MB, free: 6.699 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.2 MB, free: 4.398 MB / 190.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.531/2.531, allocations: 437 MB / 0.7104 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 67.88 kB / 0.8694 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5067/0.508, allocations: 151.6 MB / 1.017 GB, free: 2.551 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.00802/0.5161, allocations: 6.728 MB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004592/0.5207, allocations: 3.047 MB / 1.027 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004316/0.5212, allocations: 27.81 kB / 1.027 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002306/0.5235, allocations: 0.9453 MB / 1.028 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001054/0.5246, allocations: 0.5011 MB / 1.028 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009262/0.5255, allocations: 428.2 kB / 1.029 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001199/0.5267, allocations: 1.22 MB / 1.03 GB, free: 5.617 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008626/0.5276, allocations: 0.6567 MB / 1.031 GB, free: 4.961 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005834/0.5282, allocations: 478.3 kB / 1.031 GB, free: 4.492 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006569/0.5288, allocations: 0.5136 MB / 1.032 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.529, allocations: 72 kB / 1.032 GB, free: 3.906 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006592/0.5296, allocations: 379.2 kB / 1.032 GB, free: 3.535 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002973/0.5299, allocations: 311.1 kB / 1.032 GB, free: 3.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0005057/0.5304, allocations: 449.7 kB / 1.033 GB, free: 2.789 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001111/0.5316, allocations: 1.199 MB / 1.034 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.5316, allocations: 0 / 1.034 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.312e-06/0.5316, allocations: 3.938 kB / 1.034 GB, free: 1.582 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.11e-05/0.5316, allocations: 0 / 1.034 GB, free: 1.582 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.00177/0.5334, allocations: 1.155 MB / 1.035 GB, free: 388 kB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.5334, allocations: 8.031 kB / 1.035 GB, free: 380 kB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.5336, allocations: 122.7 kB / 1.035 GB, free: 248 kB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001559/0.5351, allocations: 243.5 kB / 1.035 GB, free: 4 kB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007291/0.5359, allocations: 0.5452 MB / 1.036 GB, free: 15.41 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.893e-05/0.5359, allocations: 49.67 kB / 1.036 GB, free: 15.37 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.714e-05/0.536, allocations: 60.38 kB / 1.036 GB, free: 15.31 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.5374, allocations: 1.085 MB / 1.037 GB, free: 14.11 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.466e-05/0.5374, allocations: 7.938 kB / 1.037 GB, free: 14.1 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.26e-05/0.5375, allocations: 36 kB / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001484/0.5376, allocations: 81.25 kB / 1.037 GB, free: 13.99 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.5388, allocations: 0.7504 MB / 1.038 GB, free: 13.24 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004862/0.5436, allocations: 5.901 MB / 1.044 GB, free: 6.906 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009287/0.5446, allocations: 0.5555 MB / 1.044 GB, free: 6.34 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004209/0.545, allocations: 326 kB / 1.045 GB, free: 6.02 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.5451, allocations: 8.438 kB / 1.045 GB, free: 6.012 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.5451, allocations: 39 kB / 1.045 GB, free: 5.965 MB / 0.795 GB Notification: Performance of pre-optimization done (n=47): time 1.654e-06/0.5451, allocations: 0 / 1.045 GB, free: 5.965 MB / 0.795 GB Notification: Performance of matching and sorting (n=48): time 0.003667/0.5488, allocations: 1.982 MB / 1.047 GB, free: 3.887 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.5488, allocations: 63.83 kB / 1.047 GB, free: 3.812 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005654/0.5494, allocations: 0.5547 MB / 1.047 GB, free: 3.25 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.5494, allocations: 33.7 kB / 1.047 GB, free: 3.211 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/0.5497, allocations: 418.9 kB / 1.048 GB, free: 2.797 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.5498, allocations: 173.6 kB / 1.048 GB, free: 2.625 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.55, allocations: 122.5 kB / 1.048 GB, free: 2.5 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.5502, allocations: 378.7 kB / 1.048 GB, free: 2.121 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003983/0.5506, allocations: 277.8 kB / 1.049 GB, free: 1.848 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000518/0.5511, allocations: 493 kB / 1.049 GB, free: 1.273 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009692/0.5521, allocations: 0.8055 MB / 1.05 GB, free: 384 kB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.5521, allocations: 0 / 1.05 GB, free: 384 kB / 0.795 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001752/0.5538, allocations: 1.091 MB / 1.051 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.5539, allocations: 9.875 kB / 1.051 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.5539, allocations: 8 kB / 1.051 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008173/0.5547, allocations: 275.6 kB / 1.051 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004781/0.5552, allocations: 127.8 kB / 1.051 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006203/0.5614, allocations: 7.149 MB / 1.058 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000502/0.5619, allocations: 39.95 kB / 1.058 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.57e-05/0.562, allocations: 28.19 kB / 1.058 GB, free: 7.062 MB / 0.8106 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002974/0.5623, allocations: 253.6 kB / 1.059 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.5624, allocations: 67.25 kB / 1.059 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001536/0.5639, allocations: 0.8963 MB / 1.059 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.5639, allocations: 8 kB / 1.059 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.564, allocations: 0 / 1.059 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.564, allocations: 7.984 kB / 1.059 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002484/0.5665, allocations: 1.721 MB / 1.061 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.5665, allocations: 3.938 kB / 1.061 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002705/0.5667, allocations: 59.89 kB / 1.061 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007235/0.5675, allocations: 271.4 kB / 1.061 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.5675, allocations: 11.98 kB / 1.061 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006103/0.5736, allocations: 7.127 MB / 1.068 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.5737, allocations: 4.031 kB / 1.068 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.5751, allocations: 0.9835 MB / 1.069 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.5754, allocations: 192.2 kB / 1.07 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.652e-05/0.5754, allocations: 11.94 kB / 1.07 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003804/0.5758, allocations: 28.16 kB / 1.07 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.886e-05/0.5759, allocations: 43.94 kB / 1.07 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-05/0.576, allocations: 20 kB / 1.07 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004005/0.5764, allocations: 387 kB / 1.07 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5764, allocations: 0 / 1.07 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006929/0.5771, allocations: 224 kB / 1.07 GB, free: 10.02 MB / 0.8262 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001696/0.5788, allocations: 1.546 MB / 1.072 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001915/0.5807, allocations: 1.33 MB / 1.073 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5807, allocations: 0 / 1.073 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001191/0.5819, allocations: 0.8932 MB / 1.074 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009778/0.5829, allocations: 216.8 kB / 1.074 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007858/0.5908, allocations: 6.512 MB / 1.081 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005388/0.5913, allocations: 1.013 MB / 1.082 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003861/0.5917, allocations: 118 kB / 1.082 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002865/0.592, allocations: 247.4 kB / 1.082 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.592, allocations: 0 / 1.082 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04179/0.6338, allocations: 17.13 MB / 1.099 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.774/9.407, allocations: 8.812 kB / 1.099 GB, free: 12.75 MB / 0.8575 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches