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.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: 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.001081/0.001081, allocations: 97.72 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.01286/0.01286, allocations: 170.5 kB / 16.27 MB, free: 6.652 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: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.723/2.723, allocations: 462.7 MB / 0.7364 GB, free: 340 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003508, allocations: 7.406 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3216, allocations: 159.6 MB / 1.059 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.004947/0.3266, allocations: 4.482 MB / 1.063 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003779/0.3304, allocations: 2.444 MB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003296/0.3308, allocations: 19.81 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002713/0.3311, allocations: 91.22 kB / 1.066 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0009457/0.332, allocations: 410 kB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007701/0.3328, allocations: 339 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001097/0.3339, allocations: 1.128 MB / 1.067 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007471/0.3347, allocations: 464.2 kB / 1.068 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003797/0.3351, allocations: 290.7 kB / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000403/0.3355, allocations: 334.4 kB / 1.068 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.316e-05/0.3355, allocations: 20 kB / 1.068 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007557/0.3363, allocations: 0.4989 MB / 1.069 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001648/0.3365, allocations: 163.5 kB / 1.069 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000265/0.3367, allocations: 308 kB / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008659/0.3376, allocations: 0.8837 MB / 1.07 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3376, allocations: 0 / 1.07 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3376, allocations: 0 / 1.07 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.3377, allocations: 4 kB / 1.07 GB, free: 9.633 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.001169/0.3388, allocations: 0.8219 MB / 1.071 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3389, allocations: 12.03 kB / 1.071 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001255/0.3401, allocations: 207.7 kB / 1.071 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006483/0.3408, allocations: 494.4 kB / 1.072 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.3408, allocations: 33.36 kB / 1.072 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.817e-05/0.3409, allocations: 44.36 kB / 1.072 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.342, allocations: 0.8448 MB / 1.073 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.585e-05/0.3421, allocations: 11.94 kB / 1.073 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.341e-05/0.3421, allocations: 23.98 kB / 1.073 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.303e-05/0.3422, allocations: 68.95 kB / 1.073 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000818/0.3431, allocations: 0.5616 MB / 1.073 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004161/0.3472, allocations: 5.65 MB / 1.079 GB, free: 272 kB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007738/0.348, allocations: 453.1 kB / 1.079 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003282/0.3484, allocations: 228.7 kB / 1.079 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.3484, allocations: 4.531 kB / 1.079 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.3484, allocations: 34.56 kB / 1.079 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=32): time 2.214e-06/0.3484, allocations: 8 kB / 1.079 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33): time 0.002677/0.3511, allocations: 1.504 MB / 1.081 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.3512, allocations: 59.69 kB / 1.081 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000579/0.3518, allocations: 498.9 kB / 1.081 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/0.3518, allocations: 29.7 kB / 1.081 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.3521, allocations: 358.8 kB / 1.082 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.3522, allocations: 122.3 kB / 1.082 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.109e-05/0.3523, allocations: 49.7 kB / 1.082 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001834/0.3525, allocations: 366.8 kB / 1.082 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002976/0.3528, allocations: 193.2 kB / 1.083 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004806/0.3533, allocations: 451.3 kB / 1.083 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000863/0.3542, allocations: 0.6876 MB / 1.084 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.3542, allocations: 8 kB / 1.084 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001263/0.3555, allocations: 0.8017 MB / 1.084 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.3555, allocations: 8.156 kB / 1.084 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.3555, allocations: 12 kB / 1.084 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004944/0.356, allocations: 156 kB / 1.085 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004506/0.3565, allocations: 119.8 kB / 1.085 GB, free: 9.723 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003216/0.3597, allocations: 4.044 MB / 1.089 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004097/0.3601, allocations: 35.91 kB / 1.089 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.3602, allocations: 32 kB / 1.089 GB, free: 5.215 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.0002761/0.3605, allocations: 216.6 kB / 1.089 GB, free: 4.996 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.942e-05/0.3606, allocations: 63.25 kB / 1.089 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001068/0.3616, allocations: 0.5929 MB / 1.09 GB, free: 4.32 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.3616, allocations: 4 kB / 1.09 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3617, allocations: 8 kB / 1.09 GB, free: 4.309 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.3617, allocations: 11.86 kB / 1.09 GB, free: 4.297 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.3634, allocations: 1.262 MB / 1.091 GB, free: 2.945 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3634, allocations: 0 / 1.091 GB, free: 2.945 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.3637, allocations: 51.95 kB / 1.091 GB, free: 2.895 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000407/0.3641, allocations: 148.3 kB / 1.091 GB, free: 2.734 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.422e-05/0.3641, allocations: 8 kB / 1.091 GB, free: 2.727 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002885/0.367, allocations: 4.024 MB / 1.095 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.367, allocations: 4.156 kB / 1.095 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009724/0.368, allocations: 0.704 MB / 1.096 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.3682, allocations: 172.3 kB / 1.096 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.259e-05/0.3683, allocations: 11.94 kB / 1.096 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.3686, allocations: 27.91 kB / 1.096 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.555e-05/0.3686, allocations: 23.97 kB / 1.096 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.3687, allocations: 16 kB / 1.096 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000336/0.369, allocations: 330.8 kB / 1.096 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.7e-07/0.369, allocations: 0 / 1.096 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000648/0.3697, allocations: 144 kB / 1.096 GB, free: 12.81 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.0001377/0.3698, allocations: 103.2 kB / 1.096 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001319/0.3711, allocations: 1.04 MB / 1.097 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3712, allocations: 0 / 1.097 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000781/0.3719, allocations: 0.7347 MB / 1.098 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.3731, allocations: 198.1 kB / 1.098 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.3747, allocations: 1.271 MB / 1.1 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004391/0.3751, allocations: 0.9019 MB / 1.1 GB, free: 8.32 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003286/0.3755, allocations: 121.2 kB / 1.101 GB, free: 8.199 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.293e-05/0.3756, allocations: 39.44 kB / 1.101 GB, free: 8.16 MB / 0.8575 GB Notification: Performance of SimCode: time 2.81e-07/0.3756, allocations: 0 / 1.101 GB, free: 8.16 MB / 0.8575 GB Notification: Performance of Templates: time 0.01345/0.389, allocations: 7.264 MB / 1.108 GB, free: 0.9805 MB / 0.8575 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/jenkins/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