Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_Y.S.1.|sen_Y.S.2.|sen_D.S.1.|sen_D.S.2.|errorY|errorD",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_Y.S.1.|sen_Y.S.2.|sen_D.S.1.|sen_D.S.2.|errorY|errorD",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005025/0.005025, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001076/0.001076, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.546/2.546, allocations: 472.6 MB / 0.7453 GB, free: 500 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 59.89 kB / 1.069 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8622/0.8636, allocations: 159.9 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases): time 0.01307/0.8767, allocations: 11.1 MB / 1.236 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.009583/0.8863, allocations: 5.793 MB / 1.242 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001446/0.8878, allocations: 55.62 kB / 1.242 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.004285/0.8922, allocations: 1.727 MB / 1.244 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003466/0.8957, allocations: 1.151 MB / 1.245 GB, free: 9.613 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002355/0.898, allocations: 0.805 MB / 1.246 GB, free: 8.812 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00297/0.901, allocations: 2.127 MB / 1.248 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001651/0.9027, allocations: 1.307 MB / 1.249 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001318/0.904, allocations: 0.8484 MB / 1.25 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001182/0.9052, allocations: 0.9104 MB / 1.251 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001882/0.9054, allocations: 116 kB / 1.251 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002293/0.9077, allocations: 1.169 MB / 1.252 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0004998/0.9082, allocations: 0.5258 MB / 1.253 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0007936/0.909, allocations: 0.7888 MB / 1.253 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.003154/0.9122, allocations: 2.429 MB / 1.256 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.9122, allocations: 0 / 1.256 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.077e-06/0.9122, allocations: 0 / 1.256 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.798e-05/0.9122, allocations: 3.938 kB / 1.256 GB, free: 14.54 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.00298/0.9152, allocations: 1.919 MB / 1.258 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.9153, allocations: 15.97 kB / 1.258 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004372/0.9197, allocations: 0.6786 MB / 1.258 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001616/0.9213, allocations: 1.005 MB / 1.259 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.616e-05/0.9214, allocations: 98.83 kB / 1.259 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/0.9216, allocations: 128.3 kB / 1.26 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00309/0.9247, allocations: 2.214 MB / 1.262 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.41e-05/0.9247, allocations: 23.81 kB / 1.262 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.9249, allocations: 55.97 kB / 1.262 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002019/0.9251, allocations: 162.3 kB / 1.262 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002764/0.9278, allocations: 1.867 MB / 1.264 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01183/0.9397, allocations: 12.45 MB / 1.276 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00417/0.9439, allocations: 1.968 MB / 1.278 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009142/0.9448, allocations: 0.6128 MB / 1.278 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001835/0.945, allocations: 102 kB / 1.279 GB, free: 5.926 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.9451, allocations: 43.56 kB / 1.279 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=103): time 3.446e-06/0.9451, allocations: 4 kB / 1.279 GB, free: 5.867 MB / 0.9981 GB Notification: Performance of matching and sorting (n=110): time 0.006011/0.9511, allocations: 3.732 MB / 1.282 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/0.9512, allocations: 64.41 kB / 1.282 GB, free: 1.898 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.9523, allocations: 0.9166 MB / 1.283 GB, free: 0.9648 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.454e-05/0.9523, allocations: 45.7 kB / 1.283 GB, free: 0.9141 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00052/0.9529, allocations: 0.7455 MB / 1.284 GB, free: 164 kB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003222/0.9532, allocations: 404.7 kB / 1.284 GB, free: 15.76 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003921/0.9536, allocations: 287.4 kB / 1.285 GB, free: 15.47 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.9537, allocations: 309.1 kB / 1.285 GB, free: 15.17 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008836/0.9546, allocations: 0.6129 MB / 1.285 GB, free: 14.55 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.9559, allocations: 1.106 MB / 1.287 GB, free: 13.23 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/0.9583, allocations: 1.832 MB / 1.288 GB, free: 11.18 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.9583, allocations: 4 kB / 1.288 GB, free: 11.18 MB / 1.014 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003477/0.9618, allocations: 2.104 MB / 1.29 GB, free: 9.047 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.9618, allocations: 12 kB / 1.29 GB, free: 9.035 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.54e-05/0.9618, allocations: 16 kB / 1.29 GB, free: 9.02 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008422/0.9627, allocations: 262.7 kB / 1.291 GB, free: 8.738 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/0.964, allocations: 371.4 kB / 1.291 GB, free: 8.375 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009232/0.9732, allocations: 11.6 MB / 1.302 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.9746, allocations: 124 kB / 1.302 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001899/0.9748, allocations: 79.92 kB / 1.303 GB, free: 11.46 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (187): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007557/0.9756, allocations: 401.7 kB / 1.303 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002846/0.9758, allocations: 135.2 kB / 1.303 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002984/0.9788, allocations: 1.681 MB / 1.305 GB, free: 9.207 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.9789, allocations: 12 kB / 1.305 GB, free: 9.195 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.789e-06/0.9789, allocations: 4 kB / 1.305 GB, free: 9.191 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.9789, allocations: 7.969 kB / 1.305 GB, free: 9.184 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005139/0.984, allocations: 3.287 MB / 1.308 GB, free: 5.75 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.467e-06/0.9841, allocations: 11.94 kB / 1.308 GB, free: 5.738 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008628/0.9849, allocations: 215.7 kB / 1.308 GB, free: 5.527 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007372/0.9857, allocations: 255.1 kB / 1.308 GB, free: 5.254 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.312e-05/0.9858, allocations: 27.94 kB / 1.308 GB, free: 5.227 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009425/0.9952, allocations: 11.57 MB / 1.32 GB, free: 8.535 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.9953, allocations: 7.938 kB / 1.32 GB, free: 8.527 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002953/0.9982, allocations: 1.804 MB / 1.321 GB, free: 6.617 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006678/0.9989, allocations: 308.1 kB / 1.322 GB, free: 6.297 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002613/0.9992, allocations: 35.98 kB / 1.322 GB, free: 6.262 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008113/1, allocations: 91.88 kB / 1.322 GB, free: 6.172 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000211/1, allocations: 96.64 kB / 1.322 GB, free: 6.074 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.44e-05/1, allocations: 36 kB / 1.322 GB, free: 6.039 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0008824/1.001, allocations: 0.6177 MB / 1.323 GB, free: 5.414 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.7e-07/1.001, allocations: 0 / 1.323 GB, free: 5.414 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001644/1.003, allocations: 392 kB / 1.323 GB, free: 5.031 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (109): * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00031/1.003, allocations: 152 kB / 1.323 GB, free: 4.875 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.003853/1.007, allocations: 2.5 MB / 1.326 GB, free: 2.277 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 7.894e-06/1.007, allocations: 0 / 1.326 GB, free: 2.277 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.002109/1.009, allocations: 1.634 MB / 1.327 GB, free: 0.543 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/1.011, allocations: 363.7 kB / 1.328 GB, free: 200 kB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005042/1.016, allocations: 2.78 MB / 1.33 GB, free: 13.31 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001168/1.017, allocations: 1.331 MB / 1.332 GB, free: 11.95 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.00104/1.018, allocations: 363.3 kB / 1.332 GB, free: 11.59 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003181/1.019, allocations: 95.42 kB / 1.332 GB, free: 11.5 MB / 1.061 GB Notification: Performance of SimCode: time 5.82e-07/1.019, allocations: 0 / 1.332 GB, free: 11.5 MB / 1.061 GB Notification: Performance of Templates: time 0.03271/1.051, allocations: 17.35 MB / 1.349 GB, free: 10.3 MB / 1.076 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_ThreePhases.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches