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.001661/0.001661, allocations: 109.6 kB / 16.41 MB, free: 6.508 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.001768/0.001768, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.388/1.388, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.698/2.698, allocations: 461.9 MB / 0.7355 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 60.12 kB / 1.055 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9519/0.9534, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.006173/0.9597, allocations: 3.749 MB / 1.212 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003567/0.9633, allocations: 1.801 MB / 1.214 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004782/0.9638, allocations: 15.88 kB / 1.214 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.9649, allocations: 262.6 kB / 1.214 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0009417/0.9659, allocations: 298.4 kB / 1.214 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000736/0.9666, allocations: 247 kB / 1.215 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0009165/0.9675, allocations: 0.6088 MB / 1.215 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00057/0.9681, allocations: 250.6 kB / 1.215 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005041/0.9686, allocations: 239.1 kB / 1.216 GB, free: 6.125 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004771/0.9691, allocations: 239 kB / 1.216 GB, free: 5.891 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.9692, allocations: 27.94 kB / 1.216 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006208/0.9699, allocations: 267.5 kB / 1.216 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.9701, allocations: 127.6 kB / 1.216 GB, free: 5.477 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002966/0.9704, allocations: 210.9 kB / 1.217 GB, free: 5.27 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0009662/0.9714, allocations: 0.5895 MB / 1.217 GB, free: 4.684 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.9714, allocations: 4 kB / 1.217 GB, free: 4.68 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.753e-06/0.9714, allocations: 0 / 1.217 GB, free: 4.68 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.112e-05/0.9714, allocations: 0 / 1.217 GB, free: 4.68 MB / 0.9356 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.001539/0.973, allocations: 0.7439 MB / 1.218 GB, free: 3.887 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.973, allocations: 8.031 kB / 1.218 GB, free: 3.879 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009945/0.974, allocations: 128.2 kB / 1.218 GB, free: 3.754 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006591/0.9747, allocations: 411.6 kB / 1.218 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.9747, allocations: 24.97 kB / 1.218 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/0.9748, allocations: 36.34 kB / 1.218 GB, free: 3.258 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008985/0.9757, allocations: 0.5511 MB / 1.219 GB, free: 2.633 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.9757, allocations: 3.938 kB / 1.219 GB, free: 2.629 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.9758, allocations: 16 kB / 1.219 GB, free: 2.613 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.761e-05/0.9759, allocations: 40.53 kB / 1.219 GB, free: 2.57 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007233/0.9766, allocations: 409.7 kB / 1.219 GB, free: 2.172 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003048/0.9797, allocations: 3.326 MB / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007002/0.9804, allocations: 342.4 kB / 1.223 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003095/0.9807, allocations: 180.8 kB / 1.223 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.9807, allocations: 4 kB / 1.223 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.9808, allocations: 38.5 kB / 1.223 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=26): time 2.645e-06/0.9808, allocations: 0 / 1.223 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of matching and sorting (n=27): time 0.002204/0.983, allocations: 1.067 MB / 1.224 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/0.983, allocations: 55.64 kB / 1.224 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003692/0.9834, allocations: 337.6 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/0.9835, allocations: 33.7 kB / 1.225 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.9836, allocations: 243.5 kB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.258e-05/0.9837, allocations: 98.67 kB / 1.225 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.9838, allocations: 78.03 kB / 1.225 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001248/0.984, allocations: 342.8 kB / 1.225 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002803/0.9843, allocations: 148.8 kB / 1.225 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003665/0.9846, allocations: 290.5 kB / 1.226 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007083/0.9854, allocations: 482.5 kB / 1.226 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.9854, allocations: 4 kB / 1.226 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001048/0.9864, allocations: 0.562 MB / 1.227 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.9865, allocations: 12.12 kB / 1.227 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.9865, allocations: 4 kB / 1.227 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003141/0.9868, allocations: 86.5 kB / 1.227 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003541/0.9872, allocations: 87.83 kB / 1.227 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.9872, allocations: 11.98 kB / 1.227 GB, free: 9.859 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.9875, allocations: 27.91 kB / 1.227 GB, free: 9.832 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.9875, allocations: 24 kB / 1.227 GB, free: 9.809 MB / 0.9512 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.0002209/0.9878, allocations: 173.7 kB / 1.227 GB, free: 9.629 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.634e-05/0.9878, allocations: 39.53 kB / 1.227 GB, free: 9.59 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008818/0.9887, allocations: 467.9 kB / 1.228 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.9887, allocations: 4 kB / 1.228 GB, free: 9.109 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.9887, allocations: 3.938 kB / 1.228 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.9888, allocations: 3.938 kB / 1.228 GB, free: 9.102 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.9902, allocations: 0.9637 MB / 1.229 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.9902, allocations: 0 / 1.229 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00023/0.9904, allocations: 51.89 kB / 1.229 GB, free: 8.012 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002251/0.9906, allocations: 78.52 kB / 1.229 GB, free: 7.926 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.9907, allocations: 4 kB / 1.229 GB, free: 7.922 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.9907, allocations: 7.938 kB / 1.229 GB, free: 7.914 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.9907, allocations: 0 / 1.229 GB, free: 7.914 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008039/0.9915, allocations: 0.5511 MB / 1.229 GB, free: 7.328 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.9916, allocations: 132.6 kB / 1.229 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.359e-05/0.9917, allocations: 12 kB / 1.229 GB, free: 7.168 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.9919, allocations: 19.97 kB / 1.229 GB, free: 7.148 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.674e-05/0.992, allocations: 27.91 kB / 1.229 GB, free: 7.121 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.992, allocations: 11.98 kB / 1.229 GB, free: 7.109 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002186/0.9923, allocations: 235.2 kB / 1.23 GB, free: 6.887 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3.41e-07/0.9923, allocations: 0 / 1.23 GB, free: 6.887 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004272/0.9927, allocations: 88 kB / 1.23 GB, free: 6.801 MB / 0.9512 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.0001442/0.9929, allocations: 111.2 kB / 1.23 GB, free: 6.68 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0009019/0.9938, allocations: 0.6314 MB / 1.231 GB, free: 5.984 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.9938, allocations: 8.062 kB / 1.231 GB, free: 5.977 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000428/0.9942, allocations: 437.4 kB / 1.231 GB, free: 5.488 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007238/0.9949, allocations: 125.7 kB / 1.231 GB, free: 5.367 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.9961, allocations: 0.7598 MB / 1.232 GB, free: 4.562 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.9965, allocations: 0.8195 MB / 1.233 GB, free: 3.719 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.9966, allocations: 35.44 kB / 1.233 GB, free: 3.684 MB / 0.9512 GB Notification: Performance of SimCode: time 4.51e-07/0.9966, allocations: 0 / 1.233 GB, free: 3.684 MB / 0.9512 GB Notification: Performance of Templates: time 0.01202/1.009, allocations: 9.464 MB / 1.242 GB, free: 10.24 MB / 0.9669 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/jenkins1/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