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.00152/0.00152, 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.001795/0.001795, allocations: 197.1 kB / 16.53 MB, free: 6.664 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.297/1.297, 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 9.1.3-maint.9.1.x/package.mo): time 2.314/2.314, allocations: 390.3 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 59.91 kB / 0.8126 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.662/0.6639, allocations: 140.4 MB / 0.9497 GB, free: 9.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02369/0.6876, allocations: 23.41 MB / 0.9726 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01209/0.6998, allocations: 6.49 MB / 0.9789 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001795/0.7016, allocations: 98.16 kB / 0.979 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.003451/0.7051, allocations: 1.49 MB / 0.9805 GB, free: 0.5703 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003632/0.7087, allocations: 1.827 MB / 0.9823 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.00301/0.7117, allocations: 1.456 MB / 0.9837 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.007324/0.7191, allocations: 6.91 MB / 0.9904 GB, free: 8.008 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009535/0.7286, allocations: 7.002 MB / 0.9973 GB, free: 0.918 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005073/0.7337, allocations: 2.835 MB / 1 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004704/0.7384, allocations: 3.474 MB / 1.003 GB, free: 10.59 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0009175/0.7394, allocations: 0.5273 MB / 1.004 GB, free: 10.06 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002449/0.7418, allocations: 1.174 MB / 1.005 GB, free: 8.887 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.00246/0.7443, allocations: 2.464 MB / 1.008 GB, free: 6.418 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.003359/0.7476, allocations: 2.536 MB / 1.01 GB, free: 3.871 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.009215/0.7569, allocations: 8.464 MB / 1.018 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.7569, allocations: 0 / 1.018 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.395e-06/0.7569, allocations: 3.938 kB / 1.018 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0002153/0.7572, allocations: 0 / 1.018 GB, free: 11.38 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.008966/0.7661, allocations: 4.429 MB / 1.023 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.386e-05/0.7662, allocations: 15.97 kB / 1.023 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008747/0.7671, allocations: 0.5714 MB / 1.023 GB, free: 6.285 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008117/0.7752, allocations: 1.677 MB / 1.025 GB, free: 4.602 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005422/0.7807, allocations: 2.579 MB / 1.027 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002655/0.7809, allocations: 275.7 kB / 1.028 GB, free: 1.699 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001228/0.7822, allocations: 360.3 kB / 1.028 GB, free: 1.348 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01488/0.7971, allocations: 7.483 MB / 1.035 GB, free: 9.598 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001105/0.7972, allocations: 19.78 kB / 1.035 GB, free: 9.578 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007709/0.798, allocations: 155.9 kB / 1.035 GB, free: 9.426 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000599/0.7986, allocations: 487.3 kB / 1.036 GB, free: 8.949 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01051/0.8091, allocations: 5.701 MB / 1.041 GB, free: 3.242 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03627/0.8454, allocations: 31.71 MB / 1.072 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002897/0.8483, allocations: 2.09 MB / 1.074 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002994/0.8513, allocations: 2.178 MB / 1.077 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001404/0.8515, allocations: 17.31 kB / 1.077 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.8515, allocations: 47.88 kB / 1.077 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=146): time 5.12e-06/0.8515, allocations: 0 / 1.077 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of matching and sorting (n=251): time 0.3083/1.16, allocations: 77 MB / 1.152 GB, free: 15.25 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.19e-05/1.16, allocations: 81.34 kB / 1.152 GB, free: 15.16 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003261/1.163, allocations: 1.674 MB / 1.154 GB, free: 13.45 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0004808/1.164, allocations: 65.7 kB / 1.154 GB, free: 13.38 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001219/1.165, allocations: 1.751 MB / 1.155 GB, free: 11.6 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001313/1.166, allocations: 0.8548 MB / 1.156 GB, free: 10.73 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001331/1.168, allocations: 481.2 kB / 1.157 GB, free: 10.26 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.925e-05/1.168, allocations: 305.1 kB / 1.157 GB, free: 9.957 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003853/1.172, allocations: 2.73 MB / 1.16 GB, free: 7.223 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004335/1.176, allocations: 3.332 MB / 1.163 GB, free: 3.645 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008813/1.185, allocations: 6.393 MB / 1.169 GB, free: 13 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-05/1.185, allocations: 4 kB / 1.169 GB, free: 13 MB / 0.9356 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03373/1.219, allocations: 14.67 MB / 1.183 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.249e-05/1.219, allocations: 19.97 kB / 1.183 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/1.219, allocations: 16 kB / 1.183 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0291/1.248, allocations: 9.298 MB / 1.192 GB, free: 4.918 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/1.249, allocations: 303.4 kB / 1.193 GB, free: 4.621 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0834/1.332, allocations: 52.38 MB / 1.244 GB, free: 15.35 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003242/1.336, allocations: 219.7 kB / 1.244 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005321/1.336, allocations: 100 kB / 1.244 GB, free: 15.04 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.003191/1.339, allocations: 1.582 MB / 1.246 GB, free: 13.45 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008012/1.34, allocations: 249.3 kB / 1.246 GB, free: 13.2 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4934/1.834, allocations: 14.75 MB / 1.26 GB, free: 276.3 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.482e-05/1.834, allocations: 28 kB / 1.26 GB, free: 276.3 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001835/1.834, allocations: 46.94 kB / 1.26 GB, free: 276.3 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.12e-05/1.834, allocations: 12 kB / 1.261 GB, free: 276.3 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04196/1.876, allocations: 20.52 MB / 1.281 GB, free: 271.8 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.548e-05/1.876, allocations: 7.656 kB / 1.281 GB, free: 271.8 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008103/1.877, allocations: 162 kB / 1.281 GB, free: 271.8 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02802/1.905, allocations: 9.065 MB / 1.29 GB, free: 270.4 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004507/1.905, allocations: 48.5 kB / 1.29 GB, free: 270.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06427/1.97, allocations: 51.95 MB / 1.34 GB, free: 229.1 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.97, allocations: 9.812 kB / 1.34 GB, free: 229.1 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02726/1.997, allocations: 14.36 MB / 1.354 GB, free: 214.6 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/1.999, allocations: 0.8494 MB / 1.355 GB, free: 213.7 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004694/1.999, allocations: 51.94 kB / 1.355 GB, free: 213.7 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002052/2.001, allocations: 207.7 kB / 1.355 GB, free: 213.5 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001146/2.002, allocations: 241.5 kB / 1.356 GB, free: 213.2 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001891/2.003, allocations: 68 kB / 1.356 GB, free: 213.2 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001172/2.004, allocations: 1.125 MB / 1.357 GB, free: 212 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.7e-07/2.004, allocations: 0 / 1.357 GB, free: 212 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00385/2.008, allocations: 1.613 MB / 1.358 GB, free: 210.4 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.02702/2.035, allocations: 14.98 MB / 1.373 GB, free: 195.3 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02084/2.056, allocations: 11.33 MB / 1.384 GB, free: 183.9 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/2.056, allocations: 8.062 kB / 1.384 GB, free: 183.9 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.016/2.072, allocations: 7.308 MB / 1.391 GB, free: 176.6 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002899/2.075, allocations: 0.5454 MB / 1.392 GB, free: 176.1 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08185/2.156, allocations: 53.36 MB / 1.444 GB, free: 120.5 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002607/2.159, allocations: 3.234 MB / 1.447 GB, free: 117.2 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009704/2.16, allocations: 383.4 kB / 1.447 GB, free: 116.8 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/2.161, allocations: 1.468 MB / 1.449 GB, free: 115.4 MB / 1.014 GB Notification: Performance of SimCode: time 7.42e-07/2.161, allocations: 0 / 1.449 GB, free: 115.4 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2359/2.397, allocations: 119.4 MB / 1.566 GB, free: 12.43 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/13.33, allocations: 15.3 kB / 1.566 GB, free: 12.41 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