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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009725/0.0009726, allocations: 98.64 kB / 16.02 MB, free: 76 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.001401/0.001401, allocations: 182.8 kB / 16.92 MB, free: 6.918 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.448/1.448, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.708/2.708, allocations: 437.8 MB / 0.7128 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003955/0.0003958, allocations: 8 kB / 0.8735 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6689/0.6693, allocations: 153.8 MB / 1.024 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005358/0.6747, allocations: 4.468 MB / 1.028 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004132/0.6788, allocations: 2.448 MB / 1.03 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004531/0.6793, allocations: 19.81 kB / 1.03 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003498/0.6797, allocations: 87.22 kB / 1.031 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001234/0.6809, allocations: 410 kB / 1.031 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009445/0.6819, allocations: 350.9 kB / 1.031 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001372/0.6833, allocations: 1.116 MB / 1.032 GB, free: 6.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009123/0.6842, allocations: 468.2 kB / 1.033 GB, free: 6.492 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005577/0.6848, allocations: 286.7 kB / 1.033 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00057/0.6854, allocations: 338.4 kB / 1.033 GB, free: 5.879 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.09e-05/0.6854, allocations: 23.94 kB / 1.033 GB, free: 5.855 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000861/0.6863, allocations: 499 kB / 1.034 GB, free: 5.367 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002006/0.6865, allocations: 151.5 kB / 1.034 GB, free: 5.219 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003805/0.6869, allocations: 323.9 kB / 1.034 GB, free: 4.895 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008065/0.6877, allocations: 0.6526 MB / 1.035 GB, free: 4.242 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.6877, allocations: 4 kB / 1.035 GB, free: 4.238 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.304e-06/0.6878, allocations: 0 / 1.035 GB, free: 4.238 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.721e-05/0.6878, allocations: 0 / 1.035 GB, free: 4.238 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.001372/0.6892, allocations: 0.8257 MB / 1.036 GB, free: 3.363 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.6892, allocations: 8.031 kB / 1.036 GB, free: 3.355 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00135/0.6906, allocations: 211.9 kB / 1.036 GB, free: 3.148 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007157/0.6913, allocations: 490.2 kB / 1.036 GB, free: 2.629 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.083e-05/0.6913, allocations: 37.36 kB / 1.037 GB, free: 2.594 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.955e-05/0.6914, allocations: 44.36 kB / 1.037 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.6926, allocations: 0.8486 MB / 1.037 GB, free: 1.57 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.122e-05/0.6926, allocations: 11.92 kB / 1.037 GB, free: 1.559 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.557e-05/0.6927, allocations: 20 kB / 1.037 GB, free: 1.539 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001012/0.6928, allocations: 64.95 kB / 1.037 GB, free: 1.473 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008933/0.6937, allocations: 0.5695 MB / 1.038 GB, free: 0.9062 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/0.6983, allocations: 5.654 MB / 1.044 GB, free: 10.86 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006308/0.6989, allocations: 462.6 kB / 1.044 GB, free: 10.39 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003111/0.6992, allocations: 225.3 kB / 1.044 GB, free: 10.17 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.6993, allocations: 7.984 kB / 1.044 GB, free: 10.16 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.6993, allocations: 34.56 kB / 1.044 GB, free: 10.12 MB / 0.795 GB Notification: Performance of pre-optimization done (n=32): time 1.693e-06/0.6993, allocations: 0 / 1.044 GB, free: 10.12 MB / 0.795 GB Notification: Performance of matching and sorting (n=33): time 0.002593/0.7019, allocations: 1.507 MB / 1.046 GB, free: 8.496 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.702, allocations: 59.69 kB / 1.046 GB, free: 8.426 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005196/0.7025, allocations: 498.9 kB / 1.046 GB, free: 7.926 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.7025, allocations: 29.7 kB / 1.046 GB, free: 7.891 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.7028, allocations: 350.8 kB / 1.047 GB, free: 7.543 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.7029, allocations: 126.2 kB / 1.047 GB, free: 7.418 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.117e-05/0.703, allocations: 61.62 kB / 1.047 GB, free: 7.352 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.7031, allocations: 362.8 kB / 1.047 GB, free: 6.988 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002925/0.7034, allocations: 193.2 kB / 1.047 GB, free: 6.801 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004641/0.7039, allocations: 443.3 kB / 1.048 GB, free: 6.25 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008165/0.7047, allocations: 0.6954 MB / 1.048 GB, free: 5.438 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-06/0.7047, allocations: 0 / 1.048 GB, free: 5.438 MB / 0.795 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00132/0.7061, allocations: 0.8129 MB / 1.049 GB, free: 4.602 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.7061, allocations: 8 kB / 1.049 GB, free: 4.594 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.7061, allocations: 8 kB / 1.049 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005005/0.7066, allocations: 164.7 kB / 1.049 GB, free: 4.41 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004586/0.7071, allocations: 123.8 kB / 1.05 GB, free: 4.289 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003285/0.7104, allocations: 4.04 MB / 1.053 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/0.7108, allocations: 31.97 kB / 1.054 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.239e-05/0.7108, allocations: 28 kB / 1.054 GB, free: 15.79 MB / 0.8106 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.0002696/0.7111, allocations: 213.6 kB / 1.054 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.7112, allocations: 71.23 kB / 1.054 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.7123, allocations: 0.5968 MB / 1.054 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.7123, allocations: 4 kB / 1.054 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.7124, allocations: 0 / 1.054 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.7124, allocations: 3.938 kB / 1.054 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001834/0.7142, allocations: 1.257 MB / 1.056 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.7142, allocations: 4 kB / 1.056 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000261/0.7145, allocations: 56.11 kB / 1.056 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004058/0.7149, allocations: 148.1 kB / 1.056 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.7149, allocations: 4 kB / 1.056 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003087/0.718, allocations: 4.032 MB / 1.06 GB, free: 8.879 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.7181, allocations: 4.031 kB / 1.06 GB, free: 8.875 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.7191, allocations: 0.7005 MB / 1.06 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.7193, allocations: 168.3 kB / 1.061 GB, free: 7.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.639e-05/0.7194, allocations: 19.94 kB / 1.061 GB, free: 7.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002695/0.7197, allocations: 19.97 kB / 1.061 GB, free: 7.898 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.36e-05/0.7197, allocations: 39.89 kB / 1.061 GB, free: 7.859 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/0.7198, allocations: 11.94 kB / 1.061 GB, free: 7.848 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003703/0.7201, allocations: 330.9 kB / 1.061 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7202, allocations: 0 / 1.061 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006437/0.7208, allocations: 136 kB / 1.061 GB, free: 7.395 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.000139/0.7209, allocations: 115.2 kB / 1.061 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001428/0.7224, allocations: 1.037 MB / 1.062 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.7224, allocations: 0 / 1.062 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008397/0.7232, allocations: 0.742 MB / 1.063 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.7244, allocations: 185.9 kB / 1.063 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001767/0.7262, allocations: 1.318 MB / 1.064 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004981/0.7267, allocations: 0.9097 MB / 1.065 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.7268, allocations: 43.44 kB / 1.065 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of SimCode: time 1.542e-06/0.7268, allocations: 0 / 1.065 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of Templates: time 0.02137/0.7482, allocations: 17.91 MB / 1.083 GB, free: 0.9141 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=480 -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/jenkins1/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