Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.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.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N",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.005083/0.005083, allocations: 105.3 kB / 15.73 MB, free: 6.043 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.001267/0.001267, allocations: 191.1 kB / 16.67 MB, free: 5.977 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.708/2.708, allocations: 437 MB / 0.7105 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 59.91 kB / 1.018 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2709, allocations: 151.6 MB / 1.166 GB, free: 7.27 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.01129/0.2823, allocations: 10.1 MB / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.004976/0.2873, allocations: 3.17 MB / 1.179 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006005/0.2879, allocations: 35.88 kB / 1.179 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.2895, allocations: 0.5985 MB / 1.18 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.00147/0.291, allocations: 0.7388 MB / 1.18 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001451/0.2925, allocations: 0.7369 MB / 1.181 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.002807/0.2953, allocations: 2.992 MB / 1.184 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002808/0.2981, allocations: 2.593 MB / 1.187 GB, free: 2.191 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001571/0.2997, allocations: 1.254 MB / 1.188 GB, free: 0.9336 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002085/0.3018, allocations: 1.558 MB / 1.189 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0004789/0.3023, allocations: 239.9 kB / 1.19 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001061/0.3033, allocations: 0.4994 MB / 1.19 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.001152/0.3045, allocations: 1.076 MB / 1.191 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.306, allocations: 1.105 MB / 1.192 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.003258/0.3093, allocations: 3.689 MB / 1.196 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.3093, allocations: 0 / 1.196 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3093, allocations: 0 / 1.196 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.003e-05/0.3094, allocations: 0 / 1.196 GB, free: 8.75 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.004631/0.314, allocations: 2.146 MB / 1.198 GB, free: 6.547 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3141, allocations: 15.97 kB / 1.198 GB, free: 6.531 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004389/0.3145, allocations: 261.2 kB / 1.198 GB, free: 6.266 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00952/0.324, allocations: 1.309 MB / 1.199 GB, free: 4.953 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002603/0.3267, allocations: 1.294 MB / 1.201 GB, free: 3.617 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.412e-05/0.3268, allocations: 119.4 kB / 1.201 GB, free: 3.5 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003977/0.3272, allocations: 148.3 kB / 1.201 GB, free: 3.355 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005103/0.3323, allocations: 3.44 MB / 1.204 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.63e-05/0.3323, allocations: 0 / 1.204 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002245/0.3325, allocations: 63.97 kB / 1.204 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002406/0.3328, allocations: 203.1 kB / 1.205 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004821/0.3376, allocations: 3.131 MB / 1.208 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01735/0.355, allocations: 13.54 MB / 1.221 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002484/0.3575, allocations: 1.724 MB / 1.223 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/0.3595, allocations: 1.448 MB / 1.224 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 8.883e-05/0.3596, allocations: 9 kB / 1.224 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.3597, allocations: 43.56 kB / 1.224 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=104): time 2.815e-06/0.3597, allocations: 4 kB / 1.224 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of matching and sorting (n=183): time 0.6578/1.017, allocations: 36.68 MB / 1.26 GB, free: 77.75 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.914e-05/1.018, allocations: 71.16 kB / 1.26 GB, free: 77.69 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00176/1.019, allocations: 1.057 MB / 1.261 GB, free: 77.26 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002612/1.02, allocations: 56.41 kB / 1.261 GB, free: 77.2 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005485/1.02, allocations: 0.7852 MB / 1.262 GB, free: 76.59 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005306/1.021, allocations: 0.6248 MB / 1.262 GB, free: 76.11 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007469/1.021, allocations: 360.4 kB / 1.263 GB, free: 75.96 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.477e-05/1.021, allocations: 306.4 kB / 1.263 GB, free: 75.66 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002574/1.024, allocations: 1.929 MB / 1.265 GB, free: 75 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002812/1.027, allocations: 2.282 MB / 1.267 GB, free: 73.96 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005547/1.032, allocations: 4.399 MB / 1.271 GB, free: 72.04 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/1.032, allocations: 0 / 1.271 GB, free: 72.04 MB / 0.9981 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.02147/1.054, allocations: 9.025 MB / 1.28 GB, free: 69.34 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/1.054, allocations: 9.453 kB / 1.28 GB, free: 69.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.618e-05/1.054, allocations: 8.75 kB / 1.28 GB, free: 69.34 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01785/1.072, allocations: 4.978 MB / 1.285 GB, free: 68.54 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008566/1.073, allocations: 194.9 kB / 1.285 GB, free: 68.52 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05308/1.126, allocations: 38.89 MB / 1.323 GB, free: 44.31 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002107/1.128, allocations: 103.9 kB / 1.323 GB, free: 44.21 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000342/1.128, allocations: 70.52 kB / 1.323 GB, free: 44.14 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (105): * Single equations (assignments): 101 * 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 {(8,16,100.0%), (8,16,100.0%), (8,38,100.0%), (8,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00131/1.13, allocations: 0.8018 MB / 1.324 GB, free: 43.33 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004057/1.13, allocations: 138.4 kB / 1.324 GB, free: 43.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01799/1.148, allocations: 8.894 MB / 1.333 GB, free: 34.26 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/1.148, allocations: 20 kB / 1.333 GB, free: 34.24 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.045e-05/1.148, allocations: 28 kB / 1.333 GB, free: 34.21 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.129e-05/1.148, allocations: 11.91 kB / 1.333 GB, free: 34.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02445/1.173, allocations: 13.4 MB / 1.346 GB, free: 20.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.078e-05/1.173, allocations: 4 kB / 1.346 GB, free: 20.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000473/1.173, allocations: 119.8 kB / 1.346 GB, free: 20.59 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01576/1.189, allocations: 4.838 MB / 1.351 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003048/1.189, allocations: 36 kB / 1.351 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05228/1.242, allocations: 36.83 MB / 1.387 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/1.242, allocations: 8.688 kB / 1.387 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02025/1.262, allocations: 8.59 MB / 1.395 GB, free: 1.648 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001827/1.264, allocations: 0.6359 MB / 1.396 GB, free: 0.9922 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005029/1.264, allocations: 32 kB / 1.396 GB, free: 0.9609 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001672/1.266, allocations: 95.89 kB / 1.396 GB, free: 0.8672 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009524/1.267, allocations: 173.5 kB / 1.396 GB, free: 0.6992 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002179/1.267, allocations: 47.98 kB / 1.396 GB, free: 0.6523 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001218/1.268, allocations: 0.7343 MB / 1.397 GB, free: 15.9 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.4e-07/1.268, allocations: 3.656 kB / 1.397 GB, free: 15.9 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.003641/1.272, allocations: 1.008 MB / 1.398 GB, free: 14.89 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (66): * Single equations (assignments): 62 * 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 {(8,16,100.0%), (8,38,100.0%), (8,8,100.0%), (15,23,74.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02032/1.292, allocations: 9.19 MB / 1.407 GB, free: 5.605 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0105/1.303, allocations: 5.933 MB / 1.413 GB, free: 15.62 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/1.303, allocations: 4 kB / 1.413 GB, free: 15.62 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.008247/1.311, allocations: 3.94 MB / 1.417 GB, free: 11.64 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/1.313, allocations: 227.8 kB / 1.417 GB, free: 11.43 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06102/1.374, allocations: 31.03 MB / 1.447 GB, free: 11.89 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001955/1.376, allocations: 1.855 MB / 1.449 GB, free: 10 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0008596/1.377, allocations: 362.2 kB / 1.449 GB, free: 9.648 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007781/1.378, allocations: 0.6047 MB / 1.45 GB, free: 9.043 MB / 1.092 GB Notification: Performance of SimCode: time 8.51e-07/1.378, allocations: 0 / 1.45 GB, free: 9.043 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1178/1.496, allocations: 76.16 MB / 1.524 GB, free: 13.23 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/13.45, allocations: 11.03 kB / 1.524 GB, free: 13.23 MB / 1.17 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_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_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches