Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001165/0.001165, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.01125/0.01125, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.582/1.582, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.598/2.598, allocations: 390.9 MB / 0.6663 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003515, allocations: 8 kB / 0.816 GB, free: 13.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9105/0.9109, allocations: 142.4 MB / 0.955 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005783/0.9168, allocations: 4.48 MB / 0.9594 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00435/0.9212, allocations: 2.438 MB / 0.9618 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005175/0.9217, allocations: 20.78 kB / 0.9618 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003416/0.9221, allocations: 88.69 kB / 0.9619 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001179/0.9233, allocations: 412.4 kB / 0.9623 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009133/0.9242, allocations: 340.8 kB / 0.9626 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001373/0.9256, allocations: 1.128 MB / 0.9637 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008229/0.9264, allocations: 467.2 kB / 0.9642 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004321/0.9268, allocations: 287.8 kB / 0.9644 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004592/0.9273, allocations: 334.4 kB / 0.9648 GB, free: 312 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.288e-05/0.9274, allocations: 20.66 kB / 0.9648 GB, free: 312 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009569/0.9283, allocations: 499 kB / 0.9653 GB, free: 32 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000209/0.9286, allocations: 160.8 kB / 0.9654 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003468/0.9289, allocations: 318.3 kB / 0.9657 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001181/0.9301, allocations: 0.8712 MB / 0.9666 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.9301, allocations: 8.953 kB / 0.9666 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.376e-06/0.9301, allocations: 0 / 0.9666 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.9302, allocations: 0 / 0.9666 GB, free: 15.13 MB / 0.7325 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.001533/0.9317, allocations: 0.8209 MB / 0.9674 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.383e-05/0.9318, allocations: 9.031 kB / 0.9674 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001405/0.9332, allocations: 201.2 kB / 0.9676 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008309/0.934, allocations: 0.4937 MB / 0.9681 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.082e-05/0.9341, allocations: 43.72 kB / 0.9681 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.692e-05/0.9342, allocations: 40.75 kB / 0.9681 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.9356, allocations: 0.8515 MB / 0.969 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.973e-05/0.9357, allocations: 7.281 kB / 0.969 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.45e-05/0.9357, allocations: 24.77 kB / 0.969 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001268/0.9359, allocations: 65.77 kB / 0.9691 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.9369, allocations: 0.5715 MB / 0.9696 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005835/0.9428, allocations: 5.651 MB / 0.9751 GB, free: 7.406 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007956/0.9436, allocations: 455.5 kB / 0.9756 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003632/0.944, allocations: 224.3 kB / 0.9758 GB, free: 7.062 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.944, allocations: 3.219 kB / 0.9758 GB, free: 7.062 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.944, allocations: 39.59 kB / 0.9758 GB, free: 7.016 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=32): time 2.635e-06/0.944, allocations: 0.9688 kB / 0.9758 GB, free: 7.016 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33): time 0.003145/0.9472, allocations: 1.51 MB / 0.9773 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.9473, allocations: 63.28 kB / 0.9774 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006441/0.9479, allocations: 496.7 kB / 0.9778 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/0.948, allocations: 33.7 kB / 0.9779 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002794/0.9483, allocations: 359.5 kB / 0.9782 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.9484, allocations: 118.9 kB / 0.9783 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.97e-05/0.9485, allocations: 53.84 kB / 0.9784 GB, free: 5.035 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001783/0.9486, allocations: 359.9 kB / 0.9787 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/0.949, allocations: 198.1 kB / 0.9789 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005129/0.9495, allocations: 448 kB / 0.9793 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009086/0.9504, allocations: 0.69 MB / 0.98 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.9504, allocations: 2.469 kB / 0.98 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001598/0.952, allocations: 0.8072 MB / 0.9808 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.9521, allocations: 12.3 kB / 0.9808 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.9521, allocations: 9.031 kB / 0.9808 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005728/0.9527, allocations: 150 kB / 0.981 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005164/0.9532, allocations: 127 kB / 0.9811 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004054/0.9573, allocations: 4.042 MB / 0.985 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006037/0.9579, allocations: 41.41 kB / 0.9851 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.567e-05/0.9579, allocations: 27 kB / 0.9851 GB, free: 14.86 MB / 0.7481 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.0003521/0.9583, allocations: 206.5 kB / 0.9853 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.9584, allocations: 64.89 kB / 0.9854 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001132/0.9595, allocations: 0.605 MB / 0.986 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.9596, allocations: 4 kB / 0.986 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.9596, allocations: 0 / 0.986 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.9596, allocations: 3.938 kB / 0.986 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.9616, allocations: 1.263 MB / 0.9872 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.9616, allocations: 0 / 0.9872 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.9619, allocations: 56.11 kB / 0.9872 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004191/0.9623, allocations: 140.2 kB / 0.9874 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.283e-05/0.9623, allocations: 8 kB / 0.9874 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003498/0.9658, allocations: 4.028 MB / 0.9913 GB, free: 8.082 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.9659, allocations: 4 kB / 0.9913 GB, free: 8.078 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.967, allocations: 0.7001 MB / 0.992 GB, free: 7.324 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002759/0.9672, allocations: 172.3 kB / 0.9922 GB, free: 7.137 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.052e-05/0.9673, allocations: 11.94 kB / 0.9922 GB, free: 7.125 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.9676, allocations: 27.91 kB / 0.9922 GB, free: 7.098 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.073e-05/0.9677, allocations: 31.89 kB / 0.9922 GB, free: 7.066 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.9677, allocations: 12 kB / 0.9923 GB, free: 7.055 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004275/0.9682, allocations: 326.9 kB / 0.9926 GB, free: 6.738 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9682, allocations: 0 / 0.9926 GB, free: 6.738 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007348/0.9689, allocations: 148 kB / 0.9927 GB, free: 6.594 MB / 0.7481 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.0001602/0.9691, allocations: 111.2 kB / 0.9928 GB, free: 6.477 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001506/0.9706, allocations: 1.029 MB / 0.9938 GB, free: 5.367 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.9706, allocations: 128 / 0.9938 GB, free: 5.367 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0009872/0.9716, allocations: 0.7418 MB / 0.9945 GB, free: 4.543 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001641/0.9733, allocations: 196.3 kB / 0.9947 GB, free: 4.355 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.9758, allocations: 1.27 MB / 0.996 GB, free: 3.035 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007149/0.9765, allocations: 0.9058 MB / 0.9969 GB, free: 2.098 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0005213/0.977, allocations: 113.3 kB / 0.997 GB, free: 1.984 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.9772, allocations: 43.42 kB / 0.997 GB, free: 1.945 MB / 0.7481 GB Notification: Performance of SimCode: time 9.71e-07/0.9772, allocations: 0 / 0.997 GB, free: 1.945 MB / 0.7481 GB Notification: Performance of Templates: time 0.02244/0.9996, allocations: 7.266 MB / 1.004 GB, free: 10.77 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches