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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00129/0.00129, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00133/0.00133, allocations: 190.9 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.087/2.087, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.438/3.438, allocations: 461.9 MB / 0.7344 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 60.08 kB / 0.8987 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4018/0.404, allocations: 157.4 MB / 1.052 GB, free: 8.609 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.04767/0.4517, allocations: 23.24 MB / 1.075 GB, free: 1.293 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01972/0.4715, allocations: 6.453 MB / 1.081 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003103/0.4746, allocations: 83.5 kB / 1.081 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.006589/0.4813, allocations: 1.357 MB / 1.083 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007917/0.4892, allocations: 1.704 MB / 1.084 GB, free: 7.668 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.006441/0.4957, allocations: 1.343 MB / 1.086 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01278/0.5085, allocations: 6.924 MB / 1.093 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02075/0.5294, allocations: 8.137 MB / 1.1 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006281/0.5357, allocations: 2.889 MB / 1.103 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008667/0.5444, allocations: 3.689 MB / 1.107 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002317/0.5468, allocations: 0.5273 MB / 1.107 GB, free: 36 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005041/0.5518, allocations: 1.174 MB / 1.109 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.005635/0.5575, allocations: 2.472 MB / 1.111 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.006861/0.5644, allocations: 2.536 MB / 1.113 GB, free: 9.836 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01532/0.5798, allocations: 8.515 MB / 1.122 GB, free: 1.297 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.5798, allocations: 3.938 kB / 1.122 GB, free: 1.293 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.475e-06/0.5799, allocations: 0 / 1.122 GB, free: 1.293 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002698/0.5801, allocations: 0 / 1.122 GB, free: 1.293 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: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.01801/0.5982, allocations: 4.428 MB / 1.126 GB, free: 12.8 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 6.265e-05/0.5983, allocations: 8.625 kB / 1.126 GB, free: 12.79 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002562/0.6008, allocations: 0.5714 MB / 1.127 GB, free: 12.21 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01715/0.618, allocations: 1.685 MB / 1.128 GB, free: 10.52 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009398/0.6274, allocations: 2.567 MB / 1.131 GB, free: 7.895 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004577/0.628, allocations: 279.6 kB / 1.131 GB, free: 7.621 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00209/0.6301, allocations: 360.2 kB / 1.131 GB, free: 7.27 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02681/0.6569, allocations: 7.494 MB / 1.139 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002321/0.6572, allocations: 7.938 kB / 1.139 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001702/0.6589, allocations: 167.9 kB / 1.139 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001081/0.6601, allocations: 483.3 kB / 1.139 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01924/0.6793, allocations: 5.701 MB / 1.145 GB, free: 9.156 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06415/0.7435, allocations: 31.72 MB / 1.176 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005608/0.7492, allocations: 2.086 MB / 1.178 GB, free: 4.562 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005253/0.7545, allocations: 2.174 MB / 1.18 GB, free: 2.391 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002903/0.7548, allocations: 17.31 kB / 1.18 GB, free: 2.371 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.785e-05/0.7549, allocations: 47.88 kB / 1.18 GB, free: 2.316 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=146): time 6.783e-06/0.7549, allocations: 3.938 kB / 1.18 GB, free: 2.312 MB / 0.9356 GB Notification: Performance of matching and sorting (n=251): time 1.141/1.896, allocations: 76.99 MB / 1.255 GB, free: 178.6 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/1.896, allocations: 77.14 kB / 1.255 GB, free: 178.6 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002363/1.898, allocations: 1.672 MB / 1.257 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004771/1.899, allocations: 69.31 kB / 1.257 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009731/1.9, allocations: 1.751 MB / 1.259 GB, free: 178 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000848/1.9, allocations: 0.8496 MB / 1.26 GB, free: 177.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001092/1.901, allocations: 479.5 kB / 1.26 GB, free: 177.4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.374e-05/1.902, allocations: 310.2 kB / 1.26 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004269/1.906, allocations: 2.73 MB / 1.263 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004567/1.91, allocations: 3.331 MB / 1.266 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008211/1.919, allocations: 6.396 MB / 1.273 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.468e-05/1.919, allocations: 4.906 kB / 1.273 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03047/1.949, allocations: 14.69 MB / 1.287 GB, free: 166.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.53e-05/1.949, allocations: 12.53 kB / 1.287 GB, free: 166.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.528e-05/1.949, allocations: 17.88 kB / 1.287 GB, free: 166.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02692/1.976, allocations: 9.291 MB / 1.296 GB, free: 161.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/1.977, allocations: 299 kB / 1.296 GB, free: 161.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08048/2.058, allocations: 52.38 MB / 1.347 GB, free: 111.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00379/2.062, allocations: 221.5 kB / 1.348 GB, free: 111.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006525/2.062, allocations: 108 kB / 1.348 GB, free: 111.3 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.003356/2.066, allocations: 1.587 MB / 1.349 GB, free: 109.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008488/2.067, allocations: 241.1 kB / 1.35 GB, free: 109.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03348/2.1, allocations: 14.75 MB / 1.364 GB, free: 94.69 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.235e-05/2.1, allocations: 27.94 kB / 1.364 GB, free: 94.66 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001897/2.1, allocations: 44 kB / 1.364 GB, free: 94.62 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.227e-05/2.101, allocations: 15.95 kB / 1.364 GB, free: 94.6 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0538/2.154, allocations: 20.52 MB / 1.384 GB, free: 73.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.114e-05/2.154, allocations: 8 kB / 1.384 GB, free: 73.94 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007576/2.155, allocations: 159.8 kB / 1.384 GB, free: 73.79 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02757/2.183, allocations: 9.061 MB / 1.393 GB, free: 64.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005389/2.183, allocations: 48 kB / 1.393 GB, free: 64.65 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06734/2.251, allocations: 51.95 MB / 1.444 GB, free: 11.86 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/2.251, allocations: 15.98 kB / 1.444 GB, free: 11.85 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02889/2.28, allocations: 14.37 MB / 1.458 GB, free: 13.33 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002155/2.282, allocations: 0.8455 MB / 1.459 GB, free: 12.46 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008462/2.283, allocations: 51.94 kB / 1.459 GB, free: 12.41 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002395/2.285, allocations: 211.7 kB / 1.459 GB, free: 12.21 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001486/2.287, allocations: 233.5 kB / 1.459 GB, free: 11.98 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000346/2.287, allocations: 67.94 kB / 1.459 GB, free: 11.91 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002006/2.289, allocations: 1.125 MB / 1.46 GB, free: 10.77 MB / 1.014 GB Notification: Performance of sort global known variables: time 5.51e-07/2.289, allocations: 0 / 1.46 GB, free: 10.77 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00566/2.295, allocations: 1.618 MB / 1.462 GB, free: 9.148 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.03213/2.327, allocations: 14.97 MB / 1.477 GB, free: 10.04 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.02453/2.351, allocations: 11.34 MB / 1.488 GB, free: 14.64 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/2.352, allocations: 0 / 1.488 GB, free: 14.64 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.01861/2.37, allocations: 7.302 MB / 1.495 GB, free: 7.289 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004498/2.375, allocations: 0.5513 MB / 1.495 GB, free: 6.754 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1057/2.48, allocations: 55.16 MB / 1.549 GB, free: 13.42 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004272/2.485, allocations: 3.228 MB / 1.552 GB, free: 10.16 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.00117/2.486, allocations: 380.8 kB / 1.553 GB, free: 9.789 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001599/2.487, allocations: 1.468 MB / 1.554 GB, free: 8.32 MB / 1.107 GB Notification: Performance of SimCode: time 8.22e-07/2.488, allocations: 4 kB / 1.554 GB, free: 8.316 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.586/5.074, allocations: 120.4 MB / 1.672 GB, free: 404 kB / 1.217 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004926/5.074, allocations: 264.8 kB / 1.672 GB, free: 60 kB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.483/10.56, allocations: 2.656 kB / 1.672 GB, free: 60 kB / 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