Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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: translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,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.OnePhase.Loads.Examples.TestImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,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.OnePhase.Loads.Examples.TestImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 100.1 kB / 15.88 MB, free: 12 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.001558/0.001558, allocations: 200.1 kB / 16.79 MB, free: 6.828 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.378/1.378, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.755/2.755, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 69.19 kB / 0.899 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3441, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.007104/0.3513, allocations: 4.883 MB / 1.058 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004321/0.3556, allocations: 2.487 MB / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006297/0.3563, allocations: 23.81 kB / 1.06 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001317/0.3577, allocations: 358.5 kB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.359, allocations: 410.1 kB / 1.061 GB, free: 112 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.36, allocations: 338.5 kB / 1.061 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001388/0.3614, allocations: 1.128 MB / 1.062 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007772/0.3622, allocations: 351.3 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000684/0.3629, allocations: 302.6 kB / 1.063 GB, free: 14 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007147/0.3636, allocations: 350.4 kB / 1.063 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.3637, allocations: 28 kB / 1.063 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001084/0.3648, allocations: 0.495 MB / 1.064 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002849/0.3651, allocations: 167.5 kB / 1.064 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004476/0.3656, allocations: 302.2 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.3666, allocations: 0.6666 MB / 1.065 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.3666, allocations: 0 / 1.065 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3666, allocations: 4 kB / 1.065 GB, free: 12 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.51e-05/0.3667, allocations: 0 / 1.065 GB, free: 12 MB / 0.8262 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.00187/0.3685, allocations: 0.927 MB / 1.066 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.3686, allocations: 15.97 kB / 1.066 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001383/0.37, allocations: 207.8 kB / 1.066 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007412/0.3707, allocations: 490.3 kB / 1.066 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.3708, allocations: 33.36 kB / 1.066 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.526e-05/0.3709, allocations: 48.36 kB / 1.066 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.372, allocations: 0.8447 MB / 1.067 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/0.372, allocations: 11.84 kB / 1.067 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.65e-05/0.3721, allocations: 20 kB / 1.067 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.571e-05/0.3722, allocations: 68.95 kB / 1.067 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009083/0.3731, allocations: 0.5656 MB / 1.068 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005141/0.3782, allocations: 5.651 MB / 1.073 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006731/0.379, allocations: 466.2 kB / 1.074 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003098/0.3793, allocations: 220.7 kB / 1.074 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.284e-05/0.3793, allocations: 4.531 kB / 1.074 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/0.3794, allocations: 38.56 kB / 1.074 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=32): time 1.803e-06/0.3794, allocations: 0 / 1.074 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33): time 0.002793/0.3822, allocations: 1.512 MB / 1.076 GB, free: 164 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.3822, allocations: 55.69 kB / 1.076 GB, free: 96 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005978/0.3828, allocations: 499 kB / 1.076 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.3829, allocations: 33.64 kB / 1.076 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002756/0.3832, allocations: 354.7 kB / 1.076 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.991e-05/0.3833, allocations: 118.4 kB / 1.077 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.3834, allocations: 114.2 kB / 1.077 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3836, allocations: 370.8 kB / 1.077 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003026/0.3839, allocations: 197.2 kB / 1.077 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004678/0.3844, allocations: 447.3 kB / 1.078 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009215/0.3853, allocations: 0.6877 MB / 1.078 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.3853, allocations: 4 kB / 1.078 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001354/0.3867, allocations: 0.8086 MB / 1.079 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.3867, allocations: 8.938 kB / 1.079 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.3867, allocations: 8 kB / 1.079 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005192/0.3873, allocations: 164 kB / 1.079 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004425/0.3877, allocations: 119.8 kB / 1.079 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003371/0.3911, allocations: 4.028 MB / 1.083 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003743/0.3915, allocations: 35.97 kB / 1.083 GB, free: 7.441 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.523e-05/0.3915, allocations: 31.98 kB / 1.083 GB, free: 7.41 MB / 0.8419 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.0002893/0.3918, allocations: 213.7 kB / 1.084 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.3919, allocations: 59.25 kB / 1.084 GB, free: 7.133 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.393, allocations: 0.5932 MB / 1.084 GB, free: 6.52 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.393, allocations: 4 kB / 1.084 GB, free: 6.516 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.393, allocations: 0 / 1.084 GB, free: 6.516 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.3931, allocations: 7.922 kB / 1.084 GB, free: 6.508 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.3949, allocations: 1.261 MB / 1.085 GB, free: 5.156 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3949, allocations: 4.219 kB / 1.085 GB, free: 5.152 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002476/0.3952, allocations: 55.89 kB / 1.086 GB, free: 5.098 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000425/0.3956, allocations: 144.1 kB / 1.086 GB, free: 4.941 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.712e-05/0.3957, allocations: 8 kB / 1.086 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003423/0.3991, allocations: 4.036 MB / 1.09 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.3991, allocations: 4.031 kB / 1.09 GB, free: 500 kB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.4002, allocations: 0.7078 MB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.4005, allocations: 164.4 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.147e-05/0.4006, allocations: 19.86 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.4009, allocations: 19.97 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.401, allocations: 31.91 kB / 1.091 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.238e-05/0.401, allocations: 8 kB / 1.091 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004099/0.4014, allocations: 334.8 kB / 1.091 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4014, allocations: 0 / 1.091 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006966/0.4021, allocations: 144 kB / 1.091 GB, free: 15 MB / 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.0001734/0.4023, allocations: 111.9 kB / 1.091 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001468/0.4038, allocations: 1.036 MB / 1.092 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4038, allocations: 4.125 kB / 1.092 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0008669/0.4047, allocations: 0.7263 MB / 1.093 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.4057, allocations: 189.9 kB / 1.093 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.4077, allocations: 1.297 MB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005394/0.4083, allocations: 0.9097 MB / 1.095 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.4084, allocations: 43.44 kB / 1.095 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of SimCode: time 6.21e-07/0.4084, allocations: 0 / 1.095 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of Templates: time 0.02257/0.431, allocations: 17.97 MB / 1.113 GB, free: 8.496 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches