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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.234/2.234, allocations: 387.1 MB / 399.7 MB, free: 9.457 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 168.9 kB / 492.3 MB, free: 0.5977 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.647/1.647, allocations: 221.3 MB / 0.7871 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008079/0.000808, allocations: 105.6 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.493e-05/3.496e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3235, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.067/1.39, allocations: 165.3 MB / 1.374 GB, free: 18.76 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/1.39, allocations: 94.03 kB / 1.374 GB, free: 18.76 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06582/1.456, allocations: 32.26 MB / 1.405 GB, free: 20.48 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.403e-06/1.456, allocations: 4 kB / 1.405 GB, free: 20.47 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.75e-05/1.456, allocations: 19.77 kB / 1.405 GB, free: 20.46 MB / 0.8386 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.001048/1.457, allocations: 0.77 MB / 1.406 GB, free: 19.68 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/1.458, allocations: 8.031 kB / 1.406 GB, free: 19.68 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001184/1.459, allocations: 210.7 kB / 1.406 GB, free: 19.47 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006228/1.459, allocations: 487.6 kB / 1.407 GB, free: 19.01 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/1.459, allocations: 33.12 kB / 1.407 GB, free: 18.99 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/1.459, allocations: 51.53 kB / 1.407 GB, free: 18.96 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009223/1.46, allocations: 0.918 MB / 1.408 GB, free: 18.05 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/1.46, allocations: 3.938 kB / 1.408 GB, free: 18.05 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.034e-05/1.46, allocations: 29.2 kB / 1.408 GB, free: 18.04 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.193e-05/1.461, allocations: 48.31 kB / 1.408 GB, free: 17.99 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006651/1.461, allocations: 0.5527 MB / 1.408 GB, free: 17.6 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004227/1.465, allocations: 5.661 MB / 1.414 GB, free: 11.98 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006023/1.466, allocations: 454.4 kB / 1.414 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002825/1.466, allocations: 223.5 kB / 1.415 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/1.466, allocations: 0 / 1.415 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/1.466, allocations: 45.86 kB / 1.415 GB, free: 11.47 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=32): time 1.764e-06/1.466, allocations: 0 / 1.415 GB, free: 11.47 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33): time 0.001571/1.468, allocations: 0.8429 MB / 1.415 GB, free: 10.78 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/1.468, allocations: 55.41 kB / 1.416 GB, free: 10.71 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004654/1.469, allocations: 432.4 kB / 1.416 GB, free: 10.37 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/1.469, allocations: 33.08 kB / 1.416 GB, free: 10.33 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/1.469, allocations: 334.7 kB / 1.416 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/1.469, allocations: 130.2 kB / 1.416 GB, free: 9.977 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.18e-05/1.469, allocations: 13.62 kB / 1.416 GB, free: 9.973 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001813/1.469, allocations: 362.1 kB / 1.417 GB, free: 9.633 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000251/1.469, allocations: 182.1 kB / 1.417 GB, free: 9.516 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004021/1.47, allocations: 408.5 kB / 1.417 GB, free: 9.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003385/1.47, allocations: 244.1 kB / 1.418 GB, free: 8.918 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/1.47, allocations: 4 kB / 1.418 GB, free: 8.914 MB / 0.8386 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001178/1.471, allocations: 0.7694 MB / 1.418 GB, free: 8.289 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/1.471, allocations: 8 kB / 1.418 GB, free: 8.281 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/1.471, allocations: 8.875 kB / 1.418 GB, free: 8.273 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004875/1.472, allocations: 147.4 kB / 1.418 GB, free: 8.137 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004483/1.472, allocations: 115.4 kB / 1.419 GB, free: 8.027 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003303/1.476, allocations: 4.027 MB / 1.423 GB, free: 3.777 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004821/1.476, allocations: 32.59 kB / 1.423 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.704e-05/1.476, allocations: 23.12 kB / 1.423 GB, free: 3.734 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001562/1.476, allocations: 150.3 kB / 1.423 GB, free: 3.598 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/1.476, allocations: 63.25 kB / 1.423 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/1.478, allocations: 0.5821 MB / 1.423 GB, free: 3.09 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/1.478, allocations: 4 kB / 1.423 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/1.478, allocations: 4 kB / 1.423 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.411e-06/1.478, allocations: 3.953 kB / 1.423 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001805/1.479, allocations: 1.258 MB / 1.425 GB, free: 2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/1.479, allocations: 4.156 kB / 1.425 GB, free: 1.996 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002547/1.48, allocations: 63.45 kB / 1.425 GB, free: 1.938 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003959/1.48, allocations: 142.1 kB / 1.425 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/1.48, allocations: 7.25 kB / 1.425 GB, free: 1.801 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003152/1.483, allocations: 4.035 MB / 1.429 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/1.483, allocations: 0 / 1.429 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/1.484, allocations: 0.7759 MB / 1.429 GB, free: 12.81 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002842/1.485, allocations: 169.9 kB / 1.43 GB, free: 12.64 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.35e-05/1.485, allocations: 15.12 kB / 1.43 GB, free: 12.63 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002804/1.485, allocations: 23.78 kB / 1.43 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.749e-05/1.485, allocations: 31.22 kB / 1.43 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/1.485, allocations: 11.94 kB / 1.43 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003845/1.486, allocations: 325.8 kB / 1.43 GB, free: 12.32 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.5e-07/1.486, allocations: 0 / 1.43 GB, free: 12.32 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0006623/1.486, allocations: 147.8 kB / 1.43 GB, free: 12.19 MB / 0.8542 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 () * 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001938/1.487, allocations: 118.3 kB / 1.43 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001301/1.488, allocations: 1.004 MB / 1.431 GB, free: 11.13 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.488, allocations: 0 / 1.431 GB, free: 11.13 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0007962/1.489, allocations: 0.722 MB / 1.432 GB, free: 10.39 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008539/1.489, allocations: 179.8 kB / 1.432 GB, free: 10.25 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/1.491, allocations: 0.7593 MB / 1.433 GB, free: 9.531 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005612/1.491, allocations: 0.9144 MB / 1.434 GB, free: 8.598 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0003827/1.492, allocations: 117.2 kB / 1.434 GB, free: 8.48 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.78e-05/1.492, allocations: 39.44 kB / 1.434 GB, free: 8.441 MB / 0.8542 GB Notification: Performance of SimCode: time 7.31e-07/1.492, allocations: 0 / 1.434 GB, free: 8.441 MB / 0.8542 GB Notification: Performance of Templates: time 0.01466/1.507, allocations: 7.053 MB / 1.441 GB, free: 1.492 MB / 0.8542 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","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches