Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001227/0.001227, allocations: 107.4 kB / 15.23 MB, free: 0.6406 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.001283/0.001283, allocations: 193.1 kB / 16.14 MB, free: 6.715 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.237/1.237, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.506/2.506, allocations: 461.8 MB / 0.7342 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.0014, allocations: 67.98 kB / 0.8985 GB, free: 36.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.279, allocations: 157.4 MB / 1.052 GB, free: 8.156 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02206/0.3011, allocations: 23.25 MB / 1.075 GB, free: 0.8281 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.009756/0.3109, allocations: 6.496 MB / 1.081 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002007/0.3129, allocations: 83.5 kB / 1.081 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003618/0.3165, allocations: 1.353 MB / 1.083 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004039/0.3206, allocations: 1.747 MB / 1.084 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003126/0.3237, allocations: 1.325 MB / 1.086 GB, free: 5.797 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.008412/0.3322, allocations: 10.61 MB / 1.096 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009779/0.342, allocations: 7.62 MB / 1.103 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003577/0.3456, allocations: 2.409 MB / 1.106 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004353/0.3499, allocations: 3.603 MB / 1.109 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0009842/0.3509, allocations: 380 kB / 1.11 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002498/0.3534, allocations: 1.201 MB / 1.111 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.002371/0.3558, allocations: 2.308 MB / 1.113 GB, free: 9.539 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.00231/0.3581, allocations: 2.356 MB / 1.115 GB, free: 7.172 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.005922/0.3641, allocations: 8.378 MB / 1.124 GB, free: 14.77 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3641, allocations: 4 kB / 1.124 GB, free: 14.76 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.203e-06/0.3641, allocations: 4 kB / 1.124 GB, free: 14.76 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0001717/0.3643, allocations: 0 / 1.124 GB, free: 14.76 MB / 0.8887 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.008291/0.3726, allocations: 4.416 MB / 1.128 GB, free: 10.28 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.3727, allocations: 12.03 kB / 1.128 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007578/0.3734, allocations: 0.5791 MB / 1.128 GB, free: 9.676 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007607/0.381, allocations: 1.681 MB / 1.13 GB, free: 7.988 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004135/0.3852, allocations: 2.571 MB / 1.133 GB, free: 5.363 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.3854, allocations: 275.7 kB / 1.133 GB, free: 5.094 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006238/0.386, allocations: 368.2 kB / 1.133 GB, free: 4.734 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01054/0.3966, allocations: 7.487 MB / 1.141 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-05/0.3967, allocations: 23.86 kB / 1.141 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003815/0.397, allocations: 155.9 kB / 1.141 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005126/0.3976, allocations: 491.3 kB / 1.141 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007878/0.4054, allocations: 5.693 MB / 1.147 GB, free: 6.625 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02889/0.4344, allocations: 31.71 MB / 1.178 GB, free: 4.137 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002534/0.4369, allocations: 2.092 MB / 1.18 GB, free: 2.035 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002592/0.4395, allocations: 2.174 MB / 1.182 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001551/0.4397, allocations: 13.31 kB / 1.182 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.4398, allocations: 47.88 kB / 1.182 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=146): time 4.188e-06/0.4398, allocations: 0 / 1.182 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of matching and sorting (n=251): time 0.6727/1.112, allocations: 77 MB / 1.257 GB, free: 179 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/1.113, allocations: 77.33 kB / 1.257 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002266/1.115, allocations: 1.666 MB / 1.259 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003218/1.115, allocations: 65.55 kB / 1.259 GB, free: 178.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009778/1.116, allocations: 1.742 MB / 1.261 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006563/1.117, allocations: 0.8561 MB / 1.261 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001006/1.118, allocations: 490.9 kB / 1.262 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.276e-05/1.118, allocations: 306 kB / 1.262 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003664/1.122, allocations: 2.725 MB / 1.265 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00442/1.126, allocations: 3.331 MB / 1.268 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007259/1.133, allocations: 6.395 MB / 1.274 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-05/1.133, allocations: 5.719 kB / 1.274 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.02733/1.161, allocations: 14.68 MB / 1.289 GB, free: 165.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/1.161, allocations: 11.78 kB / 1.289 GB, free: 165.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/1.161, allocations: 19.83 kB / 1.289 GB, free: 165.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02493/1.186, allocations: 9.239 MB / 1.298 GB, free: 160.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/1.187, allocations: 300.6 kB / 1.298 GB, free: 160.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05534/1.242, allocations: 47.44 MB / 1.344 GB, free: 114.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002724/1.245, allocations: 223.7 kB / 1.345 GB, free: 114 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002924/1.245, allocations: 96 kB / 1.345 GB, free: 113.9 MB / 0.9981 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.002131/1.247, allocations: 1.586 MB / 1.346 GB, free: 112.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004385/1.248, allocations: 245.1 kB / 1.346 GB, free: 112.1 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02552/1.273, allocations: 14.76 MB / 1.361 GB, free: 97.25 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.647e-05/1.273, allocations: 24 kB / 1.361 GB, free: 97.23 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001546/1.273, allocations: 44 kB / 1.361 GB, free: 97.19 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-05/1.274, allocations: 11.95 kB / 1.361 GB, free: 97.18 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03286/1.306, allocations: 20.51 MB / 1.381 GB, free: 76.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/1.306, allocations: 4 kB / 1.381 GB, free: 76.52 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006108/1.307, allocations: 169 kB / 1.381 GB, free: 76.36 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02364/1.331, allocations: 8.999 MB / 1.39 GB, free: 67.33 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002551/1.331, allocations: 48 kB / 1.39 GB, free: 67.28 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05532/1.386, allocations: 47.03 MB / 1.436 GB, free: 19.46 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/1.386, allocations: 6.188 kB / 1.436 GB, free: 19.45 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02502/1.411, allocations: 14.36 MB / 1.45 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/1.413, allocations: 0.8416 MB / 1.451 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005057/1.414, allocations: 51.98 kB / 1.451 GB, free: 4.035 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/1.415, allocations: 207.8 kB / 1.451 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001193/1.417, allocations: 249.1 kB / 1.451 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002014/1.417, allocations: 64 kB / 1.451 GB, free: 3.527 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001121/1.418, allocations: 1.129 MB / 1.452 GB, free: 2.375 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/1.418, allocations: 0 / 1.452 GB, free: 2.375 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003547/1.422, allocations: 1.609 MB / 1.454 GB, free: 0.7656 MB / 0.9981 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.02884/1.45, allocations: 14.99 MB / 1.469 GB, free: 1.633 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02007/1.47, allocations: 10.53 MB / 1.479 GB, free: 7.051 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/1.471, allocations: 0 / 1.479 GB, free: 7.051 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0166/1.487, allocations: 7.303 MB / 1.486 GB, free: 15.7 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002767/1.49, allocations: 0.5151 MB / 1.487 GB, free: 15.19 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0932/1.583, allocations: 55.16 MB / 1.54 GB, free: 5.848 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003066/1.586, allocations: 3.226 MB / 1.544 GB, free: 2.59 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001039/1.587, allocations: 387.3 kB / 1.544 GB, free: 2.207 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001419/1.589, allocations: 1.468 MB / 1.545 GB, free: 0.7383 MB / 1.092 GB Notification: Performance of SimCode: time 9.62e-07/1.589, allocations: 0 / 1.545 GB, free: 0.7383 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6164/2.205, allocations: 117 MB / 1.66 GB, free: 12.23 MB / 1.217 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002357/2.205, allocations: 263.3 kB / 1.66 GB, free: 11.89 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.307/5.512, allocations: 2.672 kB / 1.66 GB, free: 11.89 MB / 1.217 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches