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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.006411/0.006411, allocations: 101 kB / 15.88 MB, free: 6.305 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.001534/0.001535, allocations: 197.5 kB / 16.79 MB, free: 6.238 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.423/1.423, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.4/2.4, allocations: 390.2 MB / 0.6649 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 63.89 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6543/0.6559, allocations: 140.4 MB / 0.9496 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005121/0.6611, allocations: 4.879 MB / 0.9544 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003551/0.6646, allocations: 2.459 MB / 0.9568 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004394/0.6651, allocations: 21.53 kB / 0.9568 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.6662, allocations: 372.2 kB / 0.9571 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0009945/0.6672, allocations: 423.3 kB / 0.9575 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007776/0.668, allocations: 337.7 kB / 0.9579 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001028/0.669, allocations: 1.119 MB / 0.959 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005514/0.6696, allocations: 354.6 kB / 0.9593 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003916/0.67, allocations: 304.7 kB / 0.9596 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003988/0.6704, allocations: 346.9 kB / 0.9599 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.311e-05/0.6705, allocations: 26.53 kB / 0.9599 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008331/0.6713, allocations: 0.4886 MB / 0.9604 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.6715, allocations: 170.7 kB / 0.9606 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000287/0.6718, allocations: 302.9 kB / 0.9609 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006382/0.6724, allocations: 0.6703 MB / 0.9615 GB, free: 276 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.6725, allocations: 0 / 0.9615 GB, free: 276 kB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.6725, allocations: 0 / 0.9615 GB, free: 276 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.326e-06/0.6725, allocations: 1.188 kB / 0.9615 GB, free: 276 kB / 0.7169 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.001479/0.674, allocations: 0.9371 MB / 0.9624 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.674, allocations: 9.781 kB / 0.9624 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001322/0.6753, allocations: 200.3 kB / 0.9626 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007166/0.6761, allocations: 493.3 kB / 0.9631 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.6761, allocations: 35.33 kB / 0.9631 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.982e-05/0.6762, allocations: 48.55 kB / 0.9632 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.6774, allocations: 0.8516 MB / 0.964 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.6774, allocations: 8.125 kB / 0.964 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.602e-05/0.6775, allocations: 27.33 kB / 0.9641 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.895e-05/0.6776, allocations: 67.27 kB / 0.9641 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009252/0.6785, allocations: 0.5629 MB / 0.9647 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004985/0.6835, allocations: 5.66 MB / 0.9702 GB, free: 8.477 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007228/0.6842, allocations: 446 kB / 0.9706 GB, free: 8.254 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000347/0.6846, allocations: 228.9 kB / 0.9708 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.6847, allocations: 3.281 kB / 0.9708 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.6847, allocations: 31.78 kB / 0.9709 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=32): time 2.705e-06/0.6847, allocations: 4 kB / 0.9709 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33): time 0.002795/0.6875, allocations: 1.509 MB / 0.9724 GB, free: 6.988 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.6876, allocations: 55.41 kB / 0.9724 GB, free: 6.926 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005584/0.6881, allocations: 0.4957 MB / 0.9729 GB, free: 6.613 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.803e-05/0.6882, allocations: 31.08 kB / 0.9729 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.6884, allocations: 360.1 kB / 0.9733 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.6885, allocations: 117.5 kB / 0.9734 GB, free: 6.152 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.6887, allocations: 112.3 kB / 0.9735 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.6888, allocations: 363.2 kB / 0.9738 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/0.6891, allocations: 197.2 kB / 0.974 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004692/0.6896, allocations: 445.1 kB / 0.9744 GB, free: 5.207 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008944/0.6905, allocations: 0.6892 MB / 0.9751 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.6905, allocations: 7.312 kB / 0.9751 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001352/0.6919, allocations: 0.8038 MB / 0.9759 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.6919, allocations: 7.812 kB / 0.9759 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.692, allocations: 13.12 kB / 0.9759 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000528/0.6925, allocations: 157.9 kB / 0.9761 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004601/0.693, allocations: 125.7 kB / 0.9762 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003318/0.6963, allocations: 4.036 MB / 0.9801 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005272/0.6968, allocations: 34 kB / 0.9802 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-05/0.6969, allocations: 31.38 kB / 0.9802 GB, free: 15.91 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.0003095/0.6972, allocations: 209.7 kB / 0.9804 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.6973, allocations: 61.84 kB / 0.9805 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00105/0.6984, allocations: 0.6011 MB / 0.981 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.6984, allocations: 3.594 kB / 0.981 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.6984, allocations: 2.406 kB / 0.9811 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.6984, allocations: 7.938 kB / 0.9811 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.7003, allocations: 1.266 MB / 0.9823 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.7003, allocations: 1.344 kB / 0.9823 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/0.7006, allocations: 59.38 kB / 0.9824 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004168/0.701, allocations: 136.2 kB / 0.9825 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.701, allocations: 12.03 kB / 0.9825 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003104/0.7042, allocations: 4.021 MB / 0.9864 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.7042, allocations: 3.469 kB / 0.9864 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.7053, allocations: 0.7031 MB / 0.9871 GB, free: 9.59 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002696/0.7056, allocations: 172.3 kB / 0.9873 GB, free: 9.402 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.858e-05/0.7057, allocations: 11.94 kB / 0.9873 GB, free: 9.391 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.7059, allocations: 23.97 kB / 0.9873 GB, free: 9.367 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.032e-05/0.706, allocations: 27.95 kB / 0.9873 GB, free: 9.34 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.7061, allocations: 12 kB / 0.9873 GB, free: 9.328 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003508/0.7064, allocations: 330.9 kB / 0.9877 GB, free: 9.008 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7064, allocations: 4 kB / 0.9877 GB, free: 9.004 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006963/0.7071, allocations: 140 kB / 0.9878 GB, free: 8.867 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.0001486/0.7073, allocations: 111.2 kB / 0.9879 GB, free: 8.75 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001437/0.7087, allocations: 1.041 MB / 0.9889 GB, free: 7.629 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.7088, allocations: 4 kB / 0.9889 GB, free: 7.625 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008383/0.7096, allocations: 0.731 MB / 0.9896 GB, free: 6.812 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009621/0.7106, allocations: 189.5 kB / 0.9898 GB, free: 6.633 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001828/0.7124, allocations: 1.304 MB / 0.9911 GB, free: 5.273 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.7129, allocations: 0.9097 MB / 0.992 GB, free: 4.332 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.7131, allocations: 39.44 kB / 0.992 GB, free: 4.297 MB / 0.7481 GB Notification: Performance of SimCode: time 7.62e-07/0.7131, allocations: 0 / 0.992 GB, free: 4.297 MB / 0.7481 GB Notification: Performance of Templates: time 0.02078/0.7339, allocations: 17.98 MB / 1.01 GB, free: 2.348 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/jenkins1/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