Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009213/0.009213, allocations: 105.4 kB / 15.74 MB, free: 6.008 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.002162/0.002162, allocations: 199.9 kB / 16.68 MB, free: 5.93 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.735/2.735, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 68.11 kB / 1.054 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3657, allocations: 157.4 MB / 1.208 GB, free: 9.684 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.006924/0.3727, allocations: 3.765 MB / 1.211 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003961/0.3767, allocations: 1.777 MB / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005854/0.3773, allocations: 19.88 kB / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.3786, allocations: 270.5 kB / 1.213 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001151/0.3798, allocations: 298.5 kB / 1.214 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008435/0.3807, allocations: 239.5 kB / 1.214 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001081/0.3818, allocations: 0.6088 MB / 1.215 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006043/0.3824, allocations: 275 kB / 1.215 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005771/0.383, allocations: 239.1 kB / 1.215 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005314/0.3835, allocations: 235 kB / 1.215 GB, free: 1.945 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 8.339e-05/0.3836, allocations: 28 kB / 1.215 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006807/0.3843, allocations: 271.4 kB / 1.216 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.3845, allocations: 119.6 kB / 1.216 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0003321/0.3848, allocations: 202.9 kB / 1.216 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00106/0.3859, allocations: 0.5917 MB / 1.216 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3859, allocations: 0 / 1.216 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.294e-06/0.3859, allocations: 0 / 1.216 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 2.219e-05/0.386, allocations: 0 / 1.216 GB, free: 0.7422 MB / 0.9669 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.001785/0.3878, allocations: 0.744 MB / 1.217 GB, free: 15.95 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 6.773e-05/0.3878, allocations: 8.625 kB / 1.217 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001189/0.389, allocations: 136.2 kB / 1.217 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008429/0.3899, allocations: 407.6 kB / 1.218 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.952e-05/0.3899, allocations: 21.03 kB / 1.218 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.527e-05/0.39, allocations: 32.36 kB / 1.218 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.3911, allocations: 0.551 MB / 1.218 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.267e-05/0.3912, allocations: 11.89 kB / 1.218 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.019e-05/0.3913, allocations: 12 kB / 1.218 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.978e-05/0.3913, allocations: 44.53 kB / 1.218 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008483/0.3922, allocations: 405.7 kB / 1.219 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003665/0.3959, allocations: 3.33 MB / 1.222 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007066/0.3966, allocations: 330.5 kB / 1.222 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003017/0.3969, allocations: 176.8 kB / 1.222 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.397, allocations: 4 kB / 1.222 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.397, allocations: 46.44 kB / 1.222 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=26): time 2.705e-06/0.397, allocations: 0 / 1.222 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of matching and sorting (n=27): time 0.002241/0.3993, allocations: 1.059 MB / 1.224 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.3993, allocations: 55.62 kB / 1.224 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003864/0.3997, allocations: 345.5 kB / 1.224 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.3997, allocations: 33.7 kB / 1.224 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.3999, allocations: 243.5 kB / 1.224 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.785e-05/0.4, allocations: 94.64 kB / 1.224 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.4002, allocations: 78.03 kB / 1.224 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.4003, allocations: 346.8 kB / 1.225 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/0.4006, allocations: 148.8 kB / 1.225 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003677/0.401, allocations: 294.5 kB / 1.225 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006794/0.4017, allocations: 478.5 kB / 1.226 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.4017, allocations: 0 / 1.226 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009892/0.4027, allocations: 0.5622 MB / 1.226 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.4027, allocations: 12.03 kB / 1.226 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.4027, allocations: 7.984 kB / 1.226 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003384/0.4031, allocations: 94.44 kB / 1.226 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003401/0.4034, allocations: 87.88 kB / 1.226 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.818e-05/0.4035, allocations: 7.938 kB / 1.226 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002657/0.4037, allocations: 35.91 kB / 1.226 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.827e-05/0.4038, allocations: 24 kB / 1.226 GB, free: 5.859 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001939/0.404, allocations: 173.6 kB / 1.227 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.118e-05/0.4041, allocations: 39.53 kB / 1.227 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008673/0.4049, allocations: 468 kB / 1.227 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.405, allocations: 0 / 1.227 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.405, allocations: 4 kB / 1.227 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.405, allocations: 0 / 1.227 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001413/0.4064, allocations: 0.9656 MB / 1.228 GB, free: 4.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4064, allocations: 0 / 1.228 GB, free: 4.125 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002223/0.4066, allocations: 47.95 kB / 1.228 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002398/0.4069, allocations: 82.45 kB / 1.228 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.4069, allocations: 8 kB / 1.228 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.209e-06/0.4069, allocations: 3.984 kB / 1.228 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4069, allocations: 4 kB / 1.228 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000797/0.4078, allocations: 0.5355 MB / 1.229 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.4079, allocations: 144.6 kB / 1.229 GB, free: 3.242 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.119e-05/0.408, allocations: 8 kB / 1.229 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.4082, allocations: 23.97 kB / 1.229 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.164e-05/0.4083, allocations: 19.91 kB / 1.229 GB, free: 3.191 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-05/0.4083, allocations: 12 kB / 1.229 GB, free: 3.18 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002317/0.4086, allocations: 235.1 kB / 1.229 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4086, allocations: 0 / 1.229 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004532/0.409, allocations: 88 kB / 1.229 GB, free: 2.867 MB / 0.9825 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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001415/0.4092, allocations: 109.2 kB / 1.229 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009335/0.4101, allocations: 0.6394 MB / 1.23 GB, free: 2.047 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4101, allocations: 4.062 kB / 1.23 GB, free: 2.043 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004612/0.4106, allocations: 433.8 kB / 1.23 GB, free: 1.555 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006701/0.4113, allocations: 125.5 kB / 1.23 GB, free: 1.438 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.4125, allocations: 0.723 MB / 1.231 GB, free: 0.6758 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.413, allocations: 0.8195 MB / 1.232 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002459/0.4132, allocations: 87.34 kB / 1.232 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.173e-05/0.4133, allocations: 31.44 kB / 1.232 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of SimCode: time 4.71e-07/0.4133, allocations: 0 / 1.232 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of Templates: time 0.009919/0.4232, allocations: 4.737 MB / 1.237 GB, free: 11.04 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches