Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,fileNamePrefix="Buildings_9_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_9_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.007149/0.007149, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001569/0.001569, allocations: 195.4 kB / 16.67 MB, free: 5.52 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.253/2.253, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 59.91 kB / 0.9504 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7427/0.7441, allocations: 140.4 MB / 1.087 GB, free: 5.246 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.01303/0.7572, allocations: 10.09 MB / 1.097 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.007804/0.765, allocations: 3.18 MB / 1.1 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.7664, allocations: 36.88 kB / 1.1 GB, free: 12.16 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0021/0.7685, allocations: 0.5948 MB / 1.101 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002603/0.7711, allocations: 0.7381 MB / 1.102 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.00221/0.7733, allocations: 0.7468 MB / 1.102 GB, free: 11.01 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.004426/0.7778, allocations: 2.988 MB / 1.105 GB, free: 9.758 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00397/0.7818, allocations: 2.594 MB / 1.108 GB, free: 8.719 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002656/0.7844, allocations: 1.251 MB / 1.109 GB, free: 8.188 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003143/0.7876, allocations: 1.556 MB / 1.111 GB, free: 7.566 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001024/0.7886, allocations: 240.5 kB / 1.111 GB, free: 7.562 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00203/0.7907, allocations: 0.5018 MB / 1.111 GB, free: 7.457 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.002371/0.793, allocations: 1.071 MB / 1.112 GB, free: 7.062 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.002857/0.7959, allocations: 1.111 MB / 1.114 GB, free: 6.371 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.005353/0.8013, allocations: 3.685 MB / 1.117 GB, free: 5.23 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.8013, allocations: 0 / 1.117 GB, free: 5.23 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.763e-06/0.8013, allocations: 1.562 kB / 1.117 GB, free: 5.23 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.541e-05/0.8014, allocations: 0 / 1.117 GB, free: 5.23 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: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.00556/0.807, allocations: 2.141 MB / 1.119 GB, free: 3.941 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.807, allocations: 9.312 kB / 1.119 GB, free: 3.941 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004678/0.8075, allocations: 259 kB / 1.119 GB, free: 3.793 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009684/0.8172, allocations: 1.319 MB / 1.121 GB, free: 3.621 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003535/0.8208, allocations: 1.299 MB / 1.122 GB, free: 2.914 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.8209, allocations: 112.5 kB / 1.122 GB, free: 2.863 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005587/0.8214, allocations: 144.7 kB / 1.122 GB, free: 2.816 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006662/0.8281, allocations: 3.443 MB / 1.126 GB, free: 1.508 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.46e-05/0.8282, allocations: 10.75 kB / 1.126 GB, free: 1.5 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002607/0.8285, allocations: 61.88 kB / 1.126 GB, free: 1.453 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003192/0.8288, allocations: 209.2 kB / 1.126 GB, free: 1.422 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005802/0.8346, allocations: 3.126 MB / 1.129 GB, free: 428 kB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02261/0.8572, allocations: 13.54 MB / 1.142 GB, free: 7.359 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003001/0.8603, allocations: 1.733 MB / 1.144 GB, free: 6.641 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002361/0.8627, allocations: 1.438 MB / 1.145 GB, free: 5.922 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/0.8628, allocations: 11.12 kB / 1.145 GB, free: 5.922 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.449e-05/0.8629, allocations: 43.78 kB / 1.145 GB, free: 5.875 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=104): time 2.665e-06/0.8629, allocations: 0 / 1.145 GB, free: 5.875 MB / 0.8887 GB Notification: Performance of matching and sorting (n=183): time 0.1586/1.022, allocations: 36.69 MB / 1.181 GB, free: 13.05 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/1.022, allocations: 73.41 kB / 1.181 GB, free: 12.97 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001695/1.023, allocations: 1.053 MB / 1.182 GB, free: 11.89 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.000388/1.024, allocations: 57.7 kB / 1.182 GB, free: 11.83 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005263/1.024, allocations: 0.7874 MB / 1.183 GB, free: 11.03 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007759/1.025, allocations: 0.6277 MB / 1.184 GB, free: 10.39 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001065/1.026, allocations: 355.4 kB / 1.184 GB, free: 10.04 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.268e-05/1.026, allocations: 305.1 kB / 1.184 GB, free: 9.738 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002814/1.029, allocations: 1.936 MB / 1.186 GB, free: 7.801 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003071/1.032, allocations: 2.289 MB / 1.188 GB, free: 5.387 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006089/1.038, allocations: 4.396 MB / 1.193 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/1.038, allocations: 4 kB / 1.193 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.02695/1.065, allocations: 9.021 MB / 1.202 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/1.065, allocations: 16.08 kB / 1.202 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.444e-05/1.065, allocations: 8 kB / 1.202 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02604/1.091, allocations: 4.97 MB / 1.206 GB, free: 2.805 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/1.093, allocations: 195.7 kB / 1.207 GB, free: 2.613 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09131/1.184, allocations: 38.89 MB / 1.245 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003172/1.187, allocations: 99.89 kB / 1.245 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006759/1.188, allocations: 71.94 kB / 1.245 GB, free: 10.97 MB / 0.9825 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.002763/1.191, allocations: 0.8102 MB / 1.246 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000802/1.192, allocations: 138.4 kB / 1.246 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02257/1.214, allocations: 8.882 MB / 1.254 GB, free: 1.098 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.371e-05/1.214, allocations: 24 kB / 1.254 GB, free: 1.074 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.663e-05/1.214, allocations: 31.94 kB / 1.254 GB, free: 1.043 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.823e-05/1.214, allocations: 7.969 kB / 1.254 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02997/1.244, allocations: 13.41 MB / 1.268 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.551e-05/1.244, allocations: 4 kB / 1.268 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005652/1.245, allocations: 119.8 kB / 1.268 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01776/1.263, allocations: 4.837 MB / 1.272 GB, free: 14.49 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004689/1.263, allocations: 32 kB / 1.272 GB, free: 14.46 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05987/1.323, allocations: 36.82 MB / 1.308 GB, free: 9.055 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.782e-06/1.323, allocations: 11.94 kB / 1.308 GB, free: 9.043 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02128/1.345, allocations: 8.592 MB / 1.317 GB, free: 372 kB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00198/1.347, allocations: 0.6358 MB / 1.317 GB, free: 15.71 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006432/1.347, allocations: 36 kB / 1.317 GB, free: 15.67 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00176/1.349, allocations: 91.89 kB / 1.317 GB, free: 15.58 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001075/1.35, allocations: 165.6 kB / 1.318 GB, free: 15.42 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000263/1.35, allocations: 44 kB / 1.318 GB, free: 15.38 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.00129/1.352, allocations: 0.7421 MB / 1.318 GB, free: 14.62 MB / 1.061 GB Notification: Performance of sort global known variables: time 4.8e-07/1.352, allocations: 0 / 1.318 GB, free: 14.62 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.004835/1.356, allocations: 1.004 MB / 1.319 GB, free: 13.62 MB / 1.061 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.02062/1.377, allocations: 9.197 MB / 1.328 GB, free: 4.324 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.01114/1.388, allocations: 5.94 MB / 1.334 GB, free: 14.34 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/1.388, allocations: 4 kB / 1.334 GB, free: 14.34 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.008717/1.397, allocations: 3.939 MB / 1.338 GB, free: 10.35 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002125/1.399, allocations: 230.7 kB / 1.338 GB, free: 10.12 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06375/1.463, allocations: 31.03 MB / 1.369 GB, free: 10.56 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002224/1.465, allocations: 1.855 MB / 1.37 GB, free: 8.668 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0009418/1.466, allocations: 355.4 kB / 1.371 GB, free: 8.316 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008355/1.467, allocations: 0.6047 MB / 1.371 GB, free: 7.711 MB / 1.107 GB Notification: Performance of SimCode: time 6.31e-07/1.467, allocations: 4 kB / 1.371 GB, free: 7.707 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1258/1.593, allocations: 76.14 MB / 1.446 GB, free: 11.89 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/13.44, allocations: 10.62 kB / 1.446 GB, free: 11.89 MB / 1.186 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches