Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.508/2.508, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001081/0.001081, allocations: 169.1 kB / 498.1 MB, free: 5.691 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.579/1.579, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.0009806/0.0009809, allocations: 103.8 kB / 0.9346 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004014/0.0004015, allocations: 8.781 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3439, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2209/0.5649, allocations: 165.8 MB / 1.385 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003488/0.5653, allocations: 95.94 kB / 1.385 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.05795/0.6233, allocations: 22.37 MB / 1.407 GB, free: 5.512 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.485e-06/0.6233, allocations: 0 / 1.407 GB, free: 5.512 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.604e-05/0.6234, allocations: 12 kB / 1.407 GB, free: 5.5 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001589/0.625, allocations: 0.6855 MB / 1.407 GB, free: 4.766 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.625, allocations: 12.03 kB / 1.407 GB, free: 4.754 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.6261, allocations: 143.2 kB / 1.408 GB, free: 4.613 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008033/0.627, allocations: 370.6 kB / 1.408 GB, free: 4.215 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.712e-05/0.627, allocations: 20.66 kB / 1.408 GB, free: 4.195 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.416e-05/0.6271, allocations: 35.89 kB / 1.408 GB, free: 4.16 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.6282, allocations: 0.6012 MB / 1.409 GB, free: 3.457 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.6282, allocations: 7.938 kB / 1.409 GB, free: 3.449 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.637e-05/0.6283, allocations: 19.98 kB / 1.409 GB, free: 3.43 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.357e-05/0.6284, allocations: 40.47 kB / 1.409 GB, free: 3.391 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008198/0.6292, allocations: 417.7 kB / 1.409 GB, free: 2.977 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003646/0.6328, allocations: 3.353 MB / 1.412 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009163/0.6338, allocations: 350.5 kB / 1.413 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.6338, allocations: 0 / 1.413 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.6339, allocations: 42.5 kB / 1.413 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=26): time 1.994e-06/0.6339, allocations: 0 / 1.413 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of matching and sorting (n=27): time 0.002781/0.6367, allocations: 1.072 MB / 1.414 GB, free: 13.83 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/0.6367, allocations: 59.59 kB / 1.414 GB, free: 13.76 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004045/0.6371, allocations: 296.8 kB / 1.414 GB, free: 13.46 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.6372, allocations: 29.7 kB / 1.414 GB, free: 13.43 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.6374, allocations: 239.7 kB / 1.414 GB, free: 13.19 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 9.08e-05/0.6375, allocations: 98.67 kB / 1.414 GB, free: 13.09 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.636e-05/0.6375, allocations: 4 kB / 1.414 GB, free: 13.09 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.6377, allocations: 350.8 kB / 1.415 GB, free: 12.74 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002877/0.638, allocations: 144.7 kB / 1.415 GB, free: 12.59 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003501/0.6383, allocations: 272.9 kB / 1.415 GB, free: 12.27 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003411/0.6387, allocations: 196.5 kB / 1.415 GB, free: 12.08 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.6387, allocations: 0 / 1.415 GB, free: 12.08 MB / 0.9167 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001009/0.6397, allocations: 0.5429 MB / 1.416 GB, free: 11.52 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.6397, allocations: 12 kB / 1.416 GB, free: 11.51 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.6398, allocations: 7.938 kB / 1.416 GB, free: 11.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003461/0.6401, allocations: 86.52 kB / 1.416 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003645/0.6405, allocations: 83.88 kB / 1.416 GB, free: 11.33 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.906e-05/0.6405, allocations: 11.94 kB / 1.416 GB, free: 11.32 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/0.6409, allocations: 31.97 kB / 1.416 GB, free: 11.29 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.6409, allocations: 16 kB / 1.416 GB, free: 11.27 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002749/0.6412, allocations: 166.4 kB / 1.416 GB, free: 11.1 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.6413, allocations: 47.48 kB / 1.416 GB, free: 11.05 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000954/0.6422, allocations: 480.3 kB / 1.417 GB, free: 10.57 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.6423, allocations: 4 kB / 1.417 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.6423, allocations: 0 / 1.417 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.6423, allocations: 0 / 1.417 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001625/0.6439, allocations: 0.995 MB / 1.418 GB, free: 9.492 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.6439, allocations: 3.938 kB / 1.418 GB, free: 9.488 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002486/0.6442, allocations: 56.05 kB / 1.418 GB, free: 9.434 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002486/0.6445, allocations: 82.45 kB / 1.418 GB, free: 9.344 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.982e-05/0.6445, allocations: 8 kB / 1.418 GB, free: 9.336 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.646e-06/0.6445, allocations: 0 / 1.418 GB, free: 9.336 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.6445, allocations: 4 kB / 1.418 GB, free: 9.332 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008965/0.6454, allocations: 0.5869 MB / 1.418 GB, free: 8.691 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002055/0.6456, allocations: 140.6 kB / 1.419 GB, free: 8.535 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.211e-05/0.6457, allocations: 7.938 kB / 1.419 GB, free: 8.527 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.646, allocations: 27.97 kB / 1.419 GB, free: 8.5 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.996e-05/0.646, allocations: 19.97 kB / 1.419 GB, free: 8.48 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.6461, allocations: 12 kB / 1.419 GB, free: 8.469 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.000241/0.6463, allocations: 231.2 kB / 1.419 GB, free: 8.246 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6463, allocations: 0 / 1.419 GB, free: 8.246 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0004646/0.6468, allocations: 92 kB / 1.419 GB, free: 8.156 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001811/0.647, allocations: 119 kB / 1.419 GB, free: 8.027 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0009311/0.6479, allocations: 0.6273 MB / 1.42 GB, free: 7.336 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6479, allocations: 0 / 1.42 GB, free: 7.336 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004854/0.6484, allocations: 441.8 kB / 1.42 GB, free: 6.84 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006117/0.6491, allocations: 119.5 kB / 1.42 GB, free: 6.727 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.6504, allocations: 0.8644 MB / 1.421 GB, free: 5.824 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.6509, allocations: 0.8317 MB / 1.422 GB, free: 4.965 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002824/0.6512, allocations: 83.17 kB / 1.422 GB, free: 4.883 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.191e-05/0.6512, allocations: 35.38 kB / 1.422 GB, free: 4.848 MB / 0.9167 GB Notification: Performance of SimCode: time 2.8e-07/0.6513, allocations: 0 / 1.422 GB, free: 4.848 MB / 0.9167 GB Notification: Performance of Templates: time 0.009837/0.6611, allocations: 4.308 MB / 1.426 GB, free: 0.5938 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches