Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_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_RL_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_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.001105/0.001106, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001137/0.001137, allocations: 197.6 kB / 16.26 MB, free: 6.625 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.35/1.35, allocations: 222.9 MB / 239.9 MB, free: 4.445 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.331/2.331, allocations: 390.2 MB / 0.6644 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 63.91 kB / 0.8122 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7074/0.7087, allocations: 140.4 MB / 0.9492 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02519/0.734, allocations: 23.24 MB / 0.9719 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01224/0.7463, allocations: 6.447 MB / 0.9782 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003162/0.7495, allocations: 82.28 kB / 0.9783 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004305/0.7538, allocations: 1.363 MB / 0.9796 GB, free: 1.043 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.005284/0.7591, allocations: 1.707 MB / 0.9813 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003897/0.763, allocations: 1.324 MB / 0.9826 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.008669/0.7717, allocations: 6.935 MB / 0.9894 GB, free: 8.895 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0121/0.7838, allocations: 8.149 MB / 0.9973 GB, free: 0.6641 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004877/0.7887, allocations: 2.882 MB / 1 GB, free: 13.77 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005612/0.7944, allocations: 3.689 MB / 1.004 GB, free: 10.07 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001709/0.7961, allocations: 0.5273 MB / 1.004 GB, free: 9.547 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003736/0.7998, allocations: 1.174 MB / 1.005 GB, free: 8.371 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.003969/0.8038, allocations: 2.472 MB / 1.008 GB, free: 5.895 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.004249/0.8081, allocations: 2.532 MB / 1.01 GB, free: 3.352 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.007789/0.8159, allocations: 8.522 MB / 1.019 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.8159, allocations: 4 kB / 1.019 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.463e-06/0.8159, allocations: 0 / 1.019 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001711/0.8161, allocations: 0 / 1.019 GB, free: 10.8 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: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.007909/0.824, allocations: 4.428 MB / 1.023 GB, free: 6.305 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.8241, allocations: 12.03 kB / 1.023 GB, free: 6.293 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007497/0.8248, allocations: 0.5714 MB / 1.024 GB, free: 5.711 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008032/0.8329, allocations: 1.677 MB / 1.025 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004915/0.8378, allocations: 2.575 MB / 1.028 GB, free: 1.398 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002109/0.838, allocations: 279.7 kB / 1.028 GB, free: 1.125 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009266/0.839, allocations: 356.3 kB / 1.028 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.8528, allocations: 7.491 MB / 1.036 GB, free: 9.02 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001135/0.8529, allocations: 15.78 kB / 1.036 GB, free: 9.004 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006629/0.8536, allocations: 159.9 kB / 1.036 GB, free: 8.848 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006216/0.8542, allocations: 487.3 kB / 1.036 GB, free: 8.371 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009938/0.8641, allocations: 5.701 MB / 1.042 GB, free: 2.664 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03585/0.9, allocations: 31.71 MB / 1.073 GB, free: 176 kB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002826/0.9029, allocations: 2.082 MB / 1.075 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002825/0.9057, allocations: 2.186 MB / 1.077 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000181/0.9059, allocations: 17.3 kB / 1.077 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.906, allocations: 47.88 kB / 1.077 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=146): time 3.196e-06/0.906, allocations: 0 / 1.077 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=251): time 0.2689/1.175, allocations: 77 MB / 1.152 GB, free: 14.66 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/1.175, allocations: 77.41 kB / 1.152 GB, free: 14.57 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002365/1.177, allocations: 1.67 MB / 1.154 GB, free: 12.86 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0004083/1.178, allocations: 61.7 kB / 1.154 GB, free: 12.79 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001049/1.179, allocations: 1.743 MB / 1.156 GB, free: 11.03 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009527/1.18, allocations: 0.8548 MB / 1.156 GB, free: 10.16 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00109/1.181, allocations: 485.2 kB / 1.157 GB, free: 9.684 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.019e-05/1.181, allocations: 305.1 kB / 1.157 GB, free: 9.383 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003632/1.185, allocations: 2.73 MB / 1.16 GB, free: 6.648 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003974/1.189, allocations: 3.332 MB / 1.163 GB, free: 3.07 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008039/1.197, allocations: 6.393 MB / 1.169 GB, free: 12.43 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.465e-05/1.197, allocations: 8 kB / 1.169 GB, free: 12.43 MB / 0.9356 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03082/1.228, allocations: 14.67 MB / 1.184 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/1.228, allocations: 12 kB / 1.184 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.267e-05/1.228, allocations: 16.84 kB / 1.184 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02889/1.257, allocations: 9.31 MB / 1.193 GB, free: 4.34 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/1.258, allocations: 295.5 kB / 1.193 GB, free: 4.051 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07371/1.331, allocations: 52.38 MB / 1.244 GB, free: 14.79 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002488/1.334, allocations: 227.7 kB / 1.245 GB, free: 14.57 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003769/1.334, allocations: 96 kB / 1.245 GB, free: 14.47 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002509/1.337, allocations: 1.59 MB / 1.246 GB, free: 12.87 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005696/1.337, allocations: 245 kB / 1.246 GB, free: 12.63 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5111/1.849, allocations: 14.75 MB / 1.261 GB, free: 276.9 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.387e-05/1.849, allocations: 25.08 kB / 1.261 GB, free: 276.9 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001967/1.849, allocations: 45.03 kB / 1.261 GB, free: 276.9 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.7e-05/1.849, allocations: 12.44 kB / 1.261 GB, free: 276.9 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04082/1.89, allocations: 20.52 MB / 1.281 GB, free: 272.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.404e-05/1.89, allocations: 6.5 kB / 1.281 GB, free: 272.4 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007439/1.891, allocations: 168.7 kB / 1.281 GB, free: 272.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02787/1.918, allocations: 9.055 MB / 1.29 GB, free: 270.3 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004941/1.919, allocations: 53.03 kB / 1.29 GB, free: 270.3 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06381/1.983, allocations: 51.96 MB / 1.341 GB, free: 228.8 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/1.983, allocations: 11.94 kB / 1.341 GB, free: 228.8 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02596/2.009, allocations: 14.37 MB / 1.355 GB, free: 214.3 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001987/2.011, allocations: 0.8416 MB / 1.356 GB, free: 213.4 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004352/2.011, allocations: 53.95 kB / 1.356 GB, free: 213.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001825/2.013, allocations: 207.7 kB / 1.356 GB, free: 213.1 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001368/2.014, allocations: 237.5 kB / 1.356 GB, free: 212.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002073/2.015, allocations: 64.56 kB / 1.356 GB, free: 212.9 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001293/2.016, allocations: 1.125 MB / 1.357 GB, free: 211.7 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/2.016, allocations: 0 / 1.357 GB, free: 211.7 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00442/2.02, allocations: 1.613 MB / 1.359 GB, free: 210.1 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02567/2.046, allocations: 14.99 MB / 1.373 GB, free: 195 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.01966/2.066, allocations: 11.33 MB / 1.384 GB, free: 183.6 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/2.066, allocations: 0 / 1.384 GB, free: 183.6 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.01445/2.08, allocations: 7.316 MB / 1.392 GB, free: 176.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/2.083, allocations: 0.5434 MB / 1.392 GB, free: 175.7 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08298/2.166, allocations: 55.14 MB / 1.446 GB, free: 118.4 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002675/2.169, allocations: 3.231 MB / 1.449 GB, free: 115.1 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001012/2.17, allocations: 391.3 kB / 1.45 GB, free: 114.7 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/2.171, allocations: 1.464 MB / 1.451 GB, free: 113.2 MB / 1.014 GB Notification: Performance of SimCode: time 2.034e-06/2.171, allocations: 4 kB / 1.451 GB, free: 113.2 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2009/2.372, allocations: 120.5 MB / 1.569 GB, free: 9.316 MB / 1.029 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/2.372, allocations: 256.4 kB / 1.569 GB, free: 9.062 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.845/6.218, allocations: 4.062 kB / 1.569 GB, free: 9.059 MB / 1.029 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches