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.001355/0.001356, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001631/0.001631, allocations: 192 kB / 16.14 MB, free: 6.645 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.433/1.433, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.712/2.712, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 72.69 kB / 0.8984 GB, free: 37.22 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2799, allocations: 157.4 MB / 1.052 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004839/0.2848, allocations: 3.785 MB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00268/0.2875, allocations: 1.805 MB / 1.058 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001645/0.2877, allocations: 19.88 kB / 1.058 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0007508/0.2884, allocations: 247 kB / 1.058 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005183/0.289, allocations: 274.7 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.2894, allocations: 239.5 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006242/0.2901, allocations: 0.7413 MB / 1.059 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004237/0.2905, allocations: 241.9 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002692/0.2908, allocations: 215.1 kB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00027/0.2911, allocations: 235 kB / 1.06 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.951e-05/0.2911, allocations: 16 kB / 1.06 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005027/0.2916, allocations: 351.3 kB / 1.06 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.2918, allocations: 103.6 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.292, allocations: 202.9 kB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006304/0.2926, allocations: 0.5958 MB / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2926, allocations: 0 / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.11e-07/0.2926, allocations: 0 / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.2926, allocations: 0 / 1.061 GB, free: 15.77 MB / 0.8262 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.001095/0.2937, allocations: 0.7285 MB / 1.062 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.2938, allocations: 8.031 kB / 1.062 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008722/0.2947, allocations: 140.1 kB / 1.062 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.2951, allocations: 383.7 kB / 1.062 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.2952, allocations: 25.02 kB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.372e-05/0.2952, allocations: 28.38 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008946/0.2961, allocations: 0.5511 MB / 1.063 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.2962, allocations: 7.938 kB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.054e-05/0.2962, allocations: 15.98 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.074e-05/0.2963, allocations: 40.53 kB / 1.063 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007027/0.297, allocations: 413.6 kB / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002876/0.2999, allocations: 3.334 MB / 1.066 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007273/0.3006, allocations: 340 kB / 1.067 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003072/0.3009, allocations: 172.8 kB / 1.067 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.301, allocations: 4 kB / 1.067 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.301, allocations: 42.5 kB / 1.067 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=26): time 2.033e-06/0.301, allocations: 0 / 1.067 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of matching and sorting (n=27): time 0.002171/0.3032, allocations: 1.058 MB / 1.068 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.3033, allocations: 59.58 kB / 1.068 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.3036, allocations: 341.5 kB / 1.068 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/0.3036, allocations: 29.7 kB / 1.068 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.3038, allocations: 251.5 kB / 1.069 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.53e-05/0.3039, allocations: 90.66 kB / 1.069 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.304, allocations: 82.05 kB / 1.069 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.3041, allocations: 342.8 kB / 1.069 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002636/0.3044, allocations: 148.8 kB / 1.069 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000344/0.3047, allocations: 290.5 kB / 1.07 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006376/0.3054, allocations: 491.2 kB / 1.07 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3054, allocations: 4 kB / 1.07 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009909/0.3064, allocations: 0.5576 MB / 1.071 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.3064, allocations: 8 kB / 1.071 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.3064, allocations: 4.625 kB / 1.071 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003694/0.3068, allocations: 86.52 kB / 1.071 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000367/0.3072, allocations: 91.81 kB / 1.071 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.755e-05/0.3072, allocations: 8 kB / 1.071 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002961/0.3075, allocations: 35.91 kB / 1.071 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/0.3076, allocations: 15.98 kB / 1.071 GB, free: 4.93 MB / 0.8262 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.0002155/0.3078, allocations: 181.6 kB / 1.071 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.025e-05/0.3078, allocations: 39.53 kB / 1.071 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008731/0.3087, allocations: 460 kB / 1.071 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.3087, allocations: 4 kB / 1.071 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3088, allocations: 4 kB / 1.071 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.3088, allocations: 3.984 kB / 1.071 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.3102, allocations: 0.9568 MB / 1.072 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3102, allocations: 0 / 1.072 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.3104, allocations: 52 kB / 1.072 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002493/0.3107, allocations: 86.5 kB / 1.073 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.3107, allocations: 8 kB / 1.073 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.3107, allocations: 3.938 kB / 1.073 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3107, allocations: 0 / 1.073 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008539/0.3116, allocations: 0.5523 MB / 1.073 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/0.3118, allocations: 136.6 kB / 1.073 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.98e-05/0.3119, allocations: 4 kB / 1.073 GB, free: 2.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.3121, allocations: 23.97 kB / 1.073 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.714e-05/0.3122, allocations: 31.84 kB / 1.073 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.3122, allocations: 16 kB / 1.073 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002258/0.3124, allocations: 235.2 kB / 1.074 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3124, allocations: 3.938 kB / 1.074 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004477/0.3129, allocations: 84 kB / 1.074 GB, free: 1.91 MB / 0.8262 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.0001337/0.313, allocations: 111.2 kB / 1.074 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008958/0.3139, allocations: 0.6236 MB / 1.074 GB, free: 1.102 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.314, allocations: 0 / 1.074 GB, free: 1.102 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000449/0.3144, allocations: 437.8 kB / 1.075 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007114/0.3151, allocations: 111.7 kB / 1.075 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.3164, allocations: 0.8747 MB / 1.076 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/0.3168, allocations: 0.8237 MB / 1.077 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002634/0.3171, allocations: 79.36 kB / 1.077 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.634e-05/0.3171, allocations: 31.42 kB / 1.077 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of SimCode: time 5.51e-07/0.3172, allocations: 0 / 1.077 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of Templates: time 0.008942/0.3261, allocations: 4.499 MB / 1.081 GB, free: 10.19 MB / 0.8419 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