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.246/2.246, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001372/0.001372, allocations: 172.9 kB / 487.4 MB, free: 5.043 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.534/1.534, allocations: 221.5 MB / 0.7824 GB, free: 0.9492 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009477/0.0009479, allocations: 106 kB / 0.9219 GB, free: 2.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.888e-05/1.892e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.293, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.044/1.337, allocations: 165 MB / 1.367 GB, free: 18.33 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003974/1.338, allocations: 95.77 kB / 1.367 GB, free: 18.33 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.08498/1.423, allocations: 22.15 MB / 1.389 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.814e-06/1.423, allocations: 0 / 1.389 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.105e-05/1.423, allocations: 18.66 kB / 1.389 GB, free: 28.04 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001819/1.425, allocations: 0.6431 MB / 1.39 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.349e-05/1.425, allocations: 7.625 kB / 1.39 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001781/1.427, allocations: 128.7 kB / 1.39 GB, free: 27.46 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/1.428, allocations: 389.7 kB / 1.39 GB, free: 27.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/1.428, allocations: 7.719 kB / 1.39 GB, free: 27.16 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/1.428, allocations: 23.25 kB / 1.39 GB, free: 27.16 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007396/1.429, allocations: 279.7 kB / 1.39 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009655/1.43, allocations: 0.536 MB / 1.391 GB, free: 26.76 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/1.43, allocations: 3.938 kB / 1.391 GB, free: 26.76 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.698e-05/1.43, allocations: 7.891 kB / 1.391 GB, free: 26.75 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.385e-05/1.43, allocations: 35.44 kB / 1.391 GB, free: 26.75 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004036/1.434, allocations: 3.278 MB / 1.394 GB, free: 23.88 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008248/1.435, allocations: 305.2 kB / 1.394 GB, free: 23.82 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003095/1.435, allocations: 155.5 kB / 1.395 GB, free: 23.79 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/1.435, allocations: 7.672 kB / 1.395 GB, free: 23.79 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/1.435, allocations: 46.11 kB / 1.395 GB, free: 23.74 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=26): time 4.358e-06/1.435, allocations: 4 kB / 1.395 GB, free: 23.74 MB / 0.8386 GB Notification: Performance of matching and sorting (n=27): time 0.001628/1.437, allocations: 0.556 MB / 1.395 GB, free: 23.53 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/1.437, allocations: 55.45 kB / 1.395 GB, free: 23.46 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003591/1.437, allocations: 254.7 kB / 1.395 GB, free: 23.33 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/1.437, allocations: 25.7 kB / 1.395 GB, free: 23.3 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/1.437, allocations: 233 kB / 1.396 GB, free: 23.14 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.575e-05/1.438, allocations: 99.72 kB / 1.396 GB, free: 23.07 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.392e-05/1.438, allocations: 0 / 1.396 GB, free: 23.07 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001997/1.438, allocations: 350 kB / 1.396 GB, free: 22.73 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002558/1.438, allocations: 123 kB / 1.396 GB, free: 22.72 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003322/1.438, allocations: 251.2 kB / 1.396 GB, free: 22.55 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003769/1.439, allocations: 161.8 kB / 1.397 GB, free: 22.52 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/1.439, allocations: 0 / 1.397 GB, free: 22.52 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001049/1.44, allocations: 473.1 kB / 1.397 GB, free: 22.36 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/1.44, allocations: 11.67 kB / 1.397 GB, free: 22.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/1.44, allocations: 3.844 kB / 1.397 GB, free: 22.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004202/1.44, allocations: 90 kB / 1.397 GB, free: 22.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005411/1.441, allocations: 87.69 kB / 1.397 GB, free: 22.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/1.441, allocations: 11.48 kB / 1.397 GB, free: 22.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000451/1.441, allocations: 19.36 kB / 1.397 GB, free: 22.28 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.351e-05/1.442, allocations: 18.2 kB / 1.397 GB, free: 22.28 MB / 0.8386 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 () * 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.0001593/1.442, allocations: 116.7 kB / 1.397 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/1.442, allocations: 42.53 kB / 1.397 GB, free: 22.14 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/1.443, allocations: 411 kB / 1.398 GB, free: 21.99 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/1.443, allocations: 3.844 kB / 1.398 GB, free: 21.99 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/1.443, allocations: 0 / 1.398 GB, free: 21.99 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/1.443, allocations: 3.984 kB / 1.398 GB, free: 21.99 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/1.445, allocations: 0.8579 MB / 1.399 GB, free: 21.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/1.445, allocations: 7.797 kB / 1.399 GB, free: 21.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004089/1.445, allocations: 50.02 kB / 1.399 GB, free: 21.51 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003828/1.446, allocations: 82.14 kB / 1.399 GB, free: 21.46 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.821e-05/1.446, allocations: 3.938 kB / 1.399 GB, free: 21.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/1.446, allocations: 0 / 1.399 GB, free: 21.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.446, allocations: 7.922 kB / 1.399 GB, free: 21.46 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/1.447, allocations: 0.5347 MB / 1.399 GB, free: 21.14 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002225/1.447, allocations: 136.7 kB / 1.399 GB, free: 21.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.299e-05/1.447, allocations: 7.844 kB / 1.399 GB, free: 21.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004112/1.448, allocations: 19.44 kB / 1.399 GB, free: 21 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.679e-05/1.448, allocations: 26.5 kB / 1.4 GB, free: 20.99 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.721e-05/1.448, allocations: 3.781 kB / 1.4 GB, free: 20.99 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003146/1.448, allocations: 199.9 kB / 1.4 GB, free: 20.89 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.81e-07/1.448, allocations: 0 / 1.4 GB, free: 20.89 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007425/1.449, allocations: 76.84 kB / 1.4 GB, free: 20.89 MB / 0.8386 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 () * 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.0002261/1.449, allocations: 106.4 kB / 1.4 GB, free: 20.8 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009687/1.45, allocations: 0.5733 MB / 1.4 GB, free: 20.44 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/1.45, allocations: 0 / 1.4 GB, free: 20.44 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004255/1.45, allocations: 411.9 kB / 1.401 GB, free: 20.11 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000889/1.451, allocations: 105.4 kB / 1.401 GB, free: 20.07 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/1.453, allocations: 0.5013 MB / 1.401 GB, free: 19.8 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005671/1.453, allocations: 0.831 MB / 1.402 GB, free: 19.04 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000402/1.454, allocations: 77.75 kB / 1.402 GB, free: 19 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/1.454, allocations: 34.64 kB / 1.402 GB, free: 18.99 MB / 0.8386 GB Notification: Performance of SimCode: time 6.31e-07/1.454, allocations: 0 / 1.402 GB, free: 18.99 MB / 0.8386 GB Notification: Performance of Templates: time 0.01208/1.466, allocations: 3.986 MB / 1.406 GB, free: 17.07 MB / 0.8386 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