Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.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.Impedances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, 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.001459/0.001459, allocations: 196.5 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.915/2.915, allocations: 472.6 MB / 0.7451 GB, free: 4.715 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 63.38 kB / 0.912 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3285, allocations: 159.9 MB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances): time 0.007228/0.3357, allocations: 4.907 MB / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004328/0.3401, allocations: 2.483 MB / 1.075 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005954/0.3407, allocations: 27.81 kB / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.3421, allocations: 413.8 kB / 1.076 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001226/0.3433, allocations: 445.6 kB / 1.076 GB, free: 2.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000994/0.3443, allocations: 402.7 kB / 1.077 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001261/0.3456, allocations: 0.9212 MB / 1.078 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006535/0.3462, allocations: 354.5 kB / 1.078 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007098/0.347, allocations: 334.7 kB / 1.078 GB, free: 192 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006282/0.3476, allocations: 350.4 kB / 1.079 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.3477, allocations: 39.94 kB / 1.079 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008548/0.3486, allocations: 403.1 kB / 1.079 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002362/0.3489, allocations: 179.5 kB / 1.079 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004358/0.3493, allocations: 322.2 kB / 1.079 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.3505, allocations: 0.8762 MB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3505, allocations: 0 / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3505, allocations: 4 kB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.551e-05/0.3505, allocations: 0 / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001621/0.3522, allocations: 0.9501 MB / 1.081 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/0.3522, allocations: 12.03 kB / 1.081 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001364/0.3536, allocations: 195.9 kB / 1.081 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007443/0.3543, allocations: 0.4983 MB / 1.082 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/0.3544, allocations: 33.38 kB / 1.082 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.145e-05/0.3545, allocations: 44.36 kB / 1.082 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.3555, allocations: 0.8485 MB / 1.083 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.955e-05/0.3556, allocations: 3.938 kB / 1.083 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.217e-05/0.3556, allocations: 27.98 kB / 1.083 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.723e-05/0.3557, allocations: 64.95 kB / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008621/0.3566, allocations: 0.5694 MB / 1.083 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004564/0.3612, allocations: 5.658 MB / 1.089 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006527/0.3619, allocations: 454.3 kB / 1.089 GB, free: 4.07 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002993/0.3622, allocations: 229.2 kB / 1.09 GB, free: 3.844 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.3622, allocations: 4 kB / 1.09 GB, free: 3.84 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.3622, allocations: 34.56 kB / 1.09 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=32): time 1.994e-06/0.3622, allocations: 0 / 1.09 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33): time 0.00256/0.3648, allocations: 1.523 MB / 1.091 GB, free: 2.156 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.3649, allocations: 51.69 kB / 1.091 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005619/0.3654, allocations: 0.4991 MB / 1.092 GB, free: 1.582 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.3655, allocations: 33.7 kB / 1.092 GB, free: 1.543 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002468/0.3657, allocations: 358.8 kB / 1.092 GB, free: 1.188 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.3658, allocations: 122.2 kB / 1.092 GB, free: 1.066 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.366, allocations: 110.2 kB / 1.092 GB, free: 0.9492 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.3662, allocations: 362.8 kB / 1.093 GB, free: 0.5859 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.3665, allocations: 205.2 kB / 1.093 GB, free: 396 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004651/0.3669, allocations: 445.2 kB / 1.093 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008698/0.3678, allocations: 0.6835 MB / 1.094 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.3678, allocations: 4 kB / 1.094 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001353/0.3692, allocations: 0.813 MB / 1.095 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.3692, allocations: 8 kB / 1.095 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.3693, allocations: 8 kB / 1.095 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004825/0.3697, allocations: 156.9 kB / 1.095 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000473/0.3702, allocations: 123.7 kB / 1.095 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003442/0.3737, allocations: 4.355 MB / 1.099 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003932/0.3741, allocations: 35.97 kB / 1.099 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.944e-05/0.3741, allocations: 24 kB / 1.099 GB, free: 9.059 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0002608/0.3744, allocations: 221.4 kB / 1.099 GB, free: 8.832 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.3745, allocations: 63.31 kB / 1.1 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.3755, allocations: 0.6009 MB / 1.1 GB, free: 8.148 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3755, allocations: 4 kB / 1.1 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3756, allocations: 0 / 1.1 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.657e-05/0.3756, allocations: 0 / 1.1 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001853/0.3774, allocations: 1.266 MB / 1.101 GB, free: 6.785 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.3775, allocations: 4 kB / 1.101 GB, free: 6.781 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000258/0.3777, allocations: 51.89 kB / 1.101 GB, free: 6.73 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004012/0.3781, allocations: 148.3 kB / 1.102 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.3782, allocations: 7.938 kB / 1.102 GB, free: 6.562 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003334/0.3815, allocations: 4.336 MB / 1.106 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.3815, allocations: 7.969 kB / 1.106 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009953/0.3825, allocations: 0.7043 MB / 1.107 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.3828, allocations: 168.3 kB / 1.107 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.564e-05/0.3829, allocations: 8 kB / 1.107 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002656/0.3831, allocations: 19.97 kB / 1.107 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.749e-05/0.3832, allocations: 43.83 kB / 1.107 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.3833, allocations: 12 kB / 1.107 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003627/0.3836, allocations: 338.8 kB / 1.107 GB, free: 452 kB / 0.8575 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3836, allocations: 0 / 1.107 GB, free: 452 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006375/0.3843, allocations: 140 kB / 1.107 GB, free: 312 kB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0001424/0.3844, allocations: 119.1 kB / 1.107 GB, free: 180 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001465/0.3859, allocations: 1.08 MB / 1.108 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3859, allocations: 3.938 kB / 1.108 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008548/0.3868, allocations: 0.7282 MB / 1.109 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.3878, allocations: 208.3 kB / 1.109 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001664/0.3895, allocations: 1.057 MB / 1.11 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/0.39, allocations: 0.9098 MB / 1.111 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003778/0.3904, allocations: 117.3 kB / 1.111 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.378e-05/0.3905, allocations: 39.44 kB / 1.111 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of SimCode: time 1.754e-06/0.3905, allocations: 4 kB / 1.111 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of Templates: time 0.01593/0.4064, allocations: 7.61 MB / 1.119 GB, free: 4.285 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_Impedances.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches