Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001454/0.001453, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001595/0.001595, allocations: 193.5 kB / 16.14 MB, free: 6.629 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.588/1.588, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.94/2.94, allocations: 437 MB / 0.7099 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002815/0.002815, allocations: 71.88 kB / 0.8686 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7986/0.8014, allocations: 151.6 MB / 1.017 GB, free: 2.938 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.007241/0.8087, allocations: 4.881 MB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004649/0.8134, allocations: 2.471 MB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005637/0.814, allocations: 23.81 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.8154, allocations: 362.5 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001226/0.8166, allocations: 418 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009394/0.8176, allocations: 338.7 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001418/0.819, allocations: 1.124 MB / 1.026 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007165/0.8197, allocations: 343.3 kB / 1.026 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006747/0.8204, allocations: 310.6 kB / 1.027 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007328/0.8212, allocations: 354.4 kB / 1.027 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001252/0.8213, allocations: 28 kB / 1.027 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001205/0.8225, allocations: 495 kB / 1.027 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0003121/0.8229, allocations: 171.5 kB / 1.028 GB, free: 7.633 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0005356/0.8234, allocations: 302.2 kB / 1.028 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00169/0.8251, allocations: 0.8897 MB / 1.029 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.128e-05/0.8251, allocations: 7.938 kB / 1.029 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.172e-06/0.8251, allocations: 3.938 kB / 1.029 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.641e-05/0.8252, allocations: 0 / 1.029 GB, free: 6.434 MB / 0.7794 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.001822/0.827, allocations: 0.9364 MB / 1.03 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.8271, allocations: 15.97 kB / 1.03 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001455/0.8285, allocations: 203.8 kB / 1.03 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009039/0.8294, allocations: 498.2 kB / 1.03 GB, free: 4.707 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.258e-05/0.8295, allocations: 29.38 kB / 1.03 GB, free: 4.68 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.447e-05/0.8296, allocations: 44.36 kB / 1.03 GB, free: 4.637 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.8309, allocations: 0.8487 MB / 1.031 GB, free: 3.656 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.8309, allocations: 7.938 kB / 1.031 GB, free: 3.648 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.244e-05/0.831, allocations: 23.98 kB / 1.031 GB, free: 3.625 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/0.8311, allocations: 68.95 kB / 1.031 GB, free: 3.555 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009929/0.8321, allocations: 0.5656 MB / 1.032 GB, free: 2.992 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005569/0.8377, allocations: 5.646 MB / 1.037 GB, free: 12.95 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007421/0.8385, allocations: 466.2 kB / 1.038 GB, free: 12.48 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003419/0.8388, allocations: 225.8 kB / 1.038 GB, free: 12.26 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.781e-05/0.8389, allocations: 7.984 kB / 1.038 GB, free: 12.25 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.8389, allocations: 42.5 kB / 1.038 GB, free: 12.2 MB / 0.795 GB Notification: Performance of pre-optimization done (n=32): time 2.184e-06/0.8389, allocations: 0 / 1.038 GB, free: 12.2 MB / 0.795 GB Notification: Performance of matching and sorting (n=33): time 0.002857/0.8418, allocations: 1.496 MB / 1.04 GB, free: 10.59 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.8419, allocations: 59.62 kB / 1.04 GB, free: 10.52 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006171/0.8425, allocations: 0.4988 MB / 1.04 GB, free: 10.01 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.8425, allocations: 29.7 kB / 1.04 GB, free: 9.973 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003146/0.8429, allocations: 350.8 kB / 1.041 GB, free: 9.625 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.843, allocations: 114.4 kB / 1.041 GB, free: 9.512 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/0.8432, allocations: 114.2 kB / 1.041 GB, free: 9.395 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001939/0.8434, allocations: 362.8 kB / 1.041 GB, free: 9.031 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/0.8437, allocations: 197.2 kB / 1.041 GB, free: 8.836 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005128/0.8442, allocations: 439.3 kB / 1.042 GB, free: 8.293 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009417/0.8452, allocations: 0.6994 MB / 1.042 GB, free: 7.477 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.8452, allocations: 0 / 1.042 GB, free: 7.477 MB / 0.795 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00148/0.8467, allocations: 0.809 MB / 1.043 GB, free: 6.645 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.8467, allocations: 8 kB / 1.043 GB, free: 6.637 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.8467, allocations: 11.94 kB / 1.043 GB, free: 6.625 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000557/0.8473, allocations: 160.7 kB / 1.043 GB, free: 6.453 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004706/0.8478, allocations: 123.7 kB / 1.043 GB, free: 6.332 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003908/0.8517, allocations: 4.044 MB / 1.047 GB, free: 1.891 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004273/0.8521, allocations: 35.97 kB / 1.047 GB, free: 1.855 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.558e-05/0.8522, allocations: 28 kB / 1.047 GB, free: 1.828 MB / 0.795 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.0003402/0.8525, allocations: 209.6 kB / 1.048 GB, free: 1.613 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.8527, allocations: 63.34 kB / 1.048 GB, free: 1.551 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.8538, allocations: 0.5968 MB / 1.048 GB, free: 0.9336 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.8538, allocations: 4 kB / 1.048 GB, free: 0.9297 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.8538, allocations: 4 kB / 1.048 GB, free: 0.9258 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.569e-05/0.8538, allocations: 3.938 kB / 1.048 GB, free: 0.9219 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.8559, allocations: 1.259 MB / 1.05 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.8559, allocations: 0 / 1.05 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.8562, allocations: 59.89 kB / 1.05 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004387/0.8566, allocations: 144.4 kB / 1.05 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.81e-05/0.8566, allocations: 8 kB / 1.05 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003648/0.8603, allocations: 4.036 MB / 1.054 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.8603, allocations: 4.031 kB / 1.054 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.8615, allocations: 0.7049 MB / 1.054 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002323/0.8617, allocations: 164.4 kB / 1.055 GB, free: 9.969 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.313e-05/0.8618, allocations: 11.94 kB / 1.055 GB, free: 9.957 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.8621, allocations: 27.97 kB / 1.055 GB, free: 9.93 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.666e-05/0.8622, allocations: 35.89 kB / 1.055 GB, free: 9.895 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.8622, allocations: 8 kB / 1.055 GB, free: 9.887 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004319/0.8626, allocations: 330.9 kB / 1.055 GB, free: 9.566 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8627, allocations: 0 / 1.055 GB, free: 9.566 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006791/0.8633, allocations: 136 kB / 1.055 GB, free: 9.434 MB / 0.8106 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.0001633/0.8635, allocations: 119.2 kB / 1.055 GB, free: 9.309 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001539/0.8651, allocations: 1.036 MB / 1.056 GB, free: 8.191 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.8651, allocations: 1 kB / 1.056 GB, free: 8.191 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0009591/0.866, allocations: 0.7351 MB / 1.057 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009936/0.867, allocations: 196 kB / 1.057 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/0.8689, allocations: 1.252 MB / 1.058 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005776/0.8695, allocations: 0.9097 MB / 1.059 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003462/0.8698, allocations: 109.3 kB / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.8699, allocations: 39.44 kB / 1.059 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of SimCode: time 2.9e-07/0.8699, allocations: 4 kB / 1.059 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of Templates: time 0.01516/0.8851, allocations: 7.345 MB / 1.067 GB, free: 13.54 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches