Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008731/0.008731, allocations: 98.75 kB / 15.73 MB, free: 6.059 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.001892/0.001892, allocations: 189 kB / 16.67 MB, free: 5.969 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.811/2.811, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 59.91 kB / 1.069 GB, free: 9.18 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3047, allocations: 159.9 MB / 1.226 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005574/0.3103, allocations: 4.861 MB / 1.23 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.004325/0.3147, allocations: 2.455 MB / 1.233 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003304/0.315, allocations: 23.81 kB / 1.233 GB, free: 1.797 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.3164, allocations: 406 kB / 1.233 GB, free: 1.398 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001076/0.3174, allocations: 445.6 kB / 1.234 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008924/0.3183, allocations: 365.8 kB / 1.234 GB, free: 0.6055 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0009426/0.3193, allocations: 0.9212 MB / 1.235 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005541/0.3199, allocations: 360.1 kB / 1.235 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003908/0.3203, allocations: 338.7 kB / 1.236 GB, free: 14.99 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004337/0.3207, allocations: 350.4 kB / 1.236 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.397e-05/0.3208, allocations: 40 kB / 1.236 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006261/0.3214, allocations: 399.1 kB / 1.236 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.3216, allocations: 171.5 kB / 1.236 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002672/0.3219, allocations: 322.2 kB / 1.237 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008962/0.3228, allocations: 0.8909 MB / 1.238 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3228, allocations: 0 / 1.238 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3228, allocations: 0 / 1.238 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.548e-06/0.3228, allocations: 4 kB / 1.238 GB, free: 12.84 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001346/0.3242, allocations: 0.9494 MB / 1.239 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.3242, allocations: 8.031 kB / 1.239 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001219/0.3254, allocations: 216.1 kB / 1.239 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007041/0.3262, allocations: 0.5378 MB / 1.239 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.3262, allocations: 37.36 kB / 1.239 GB, free: 11 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.024e-05/0.3263, allocations: 40.38 kB / 1.239 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001003/0.3273, allocations: 0.8448 MB / 1.24 GB, free: 9.98 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.3273, allocations: 7.938 kB / 1.24 GB, free: 9.973 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.826e-05/0.3274, allocations: 23.98 kB / 1.24 GB, free: 9.949 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.17e-05/0.3275, allocations: 68.95 kB / 1.24 GB, free: 9.883 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007464/0.3282, allocations: 0.5695 MB / 1.241 GB, free: 9.312 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00383/0.3321, allocations: 5.643 MB / 1.246 GB, free: 3.277 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005876/0.3327, allocations: 468.6 kB / 1.247 GB, free: 2.812 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002865/0.333, allocations: 224.7 kB / 1.247 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.333, allocations: 4 kB / 1.247 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.333, allocations: 39.03 kB / 1.247 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=32): time 1.793e-06/0.333, allocations: 0 / 1.247 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33): time 0.002342/0.3354, allocations: 1.516 MB / 1.249 GB, free: 0.9062 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.3354, allocations: 63.62 kB / 1.249 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000438/0.3359, allocations: 499 kB / 1.249 GB, free: 344 kB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.3359, allocations: 33.7 kB / 1.249 GB, free: 304 kB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.6717/1.008, allocations: 357.5 kB / 1.249 GB, free: 27.11 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001926/1.008, allocations: 128.9 kB / 1.25 GB, free: 27.11 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/1.008, allocations: 110.3 kB / 1.25 GB, free: 27.09 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001403/1.008, allocations: 365.5 kB / 1.25 GB, free: 26.78 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003416/1.009, allocations: 195.8 kB / 1.25 GB, free: 26.78 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004474/1.009, allocations: 445.3 kB / 1.251 GB, free: 26.47 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007599/1.01, allocations: 0.6852 MB / 1.251 GB, free: 26.17 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/1.01, allocations: 2.531 kB / 1.251 GB, free: 26.17 MB / 0.9981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001363/1.011, allocations: 0.8169 MB / 1.252 GB, free: 26.04 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/1.011, allocations: 10.58 kB / 1.252 GB, free: 26.04 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/1.011, allocations: 7.938 kB / 1.252 GB, free: 26.04 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004896/1.012, allocations: 155 kB / 1.252 GB, free: 25.99 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004697/1.012, allocations: 122.2 kB / 1.252 GB, free: 25.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002444/1.015, allocations: 4.348 MB / 1.257 GB, free: 21.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004168/1.015, allocations: 35.88 kB / 1.257 GB, free: 21.93 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.939e-05/1.015, allocations: 29.34 kB / 1.257 GB, free: 21.93 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002465/1.015, allocations: 219.6 kB / 1.257 GB, free: 21.8 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.722e-05/1.015, allocations: 61.95 kB / 1.257 GB, free: 21.77 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001034/1.017, allocations: 0.5993 MB / 1.258 GB, free: 21.66 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/1.017, allocations: 3.031 kB / 1.258 GB, free: 21.66 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/1.017, allocations: 6.031 kB / 1.258 GB, free: 21.66 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/1.017, allocations: 2.703 kB / 1.258 GB, free: 21.66 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/1.018, allocations: 1.254 MB / 1.259 GB, free: 21.24 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/1.018, allocations: 2.188 kB / 1.259 GB, free: 21.24 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000243/1.019, allocations: 59.11 kB / 1.259 GB, free: 21.23 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003621/1.019, allocations: 139.3 kB / 1.259 GB, free: 21.2 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/1.019, allocations: 7.188 kB / 1.259 GB, free: 21.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002222/1.021, allocations: 4.349 MB / 1.263 GB, free: 17.12 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/1.021, allocations: 4.781 kB / 1.263 GB, free: 17.12 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008883/1.022, allocations: 0.7071 MB / 1.264 GB, free: 16.84 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/1.022, allocations: 171.1 kB / 1.264 GB, free: 16.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.53e-05/1.022, allocations: 12.41 kB / 1.264 GB, free: 16.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/1.023, allocations: 23.48 kB / 1.264 GB, free: 16.71 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.134e-05/1.023, allocations: 34.62 kB / 1.264 GB, free: 16.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/1.023, allocations: 11.56 kB / 1.264 GB, free: 16.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003035/1.023, allocations: 329.6 kB / 1.264 GB, free: 16.61 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.11e-07/1.023, allocations: 0 / 1.264 GB, free: 16.61 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0006669/1.024, allocations: 138.3 kB / 1.265 GB, free: 16.61 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001268/1.024, allocations: 124.1 kB / 1.265 GB, free: 16.52 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001104/1.025, allocations: 1.037 MB / 1.266 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/1.025, allocations: 0 / 1.266 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006738/1.026, allocations: 0.7466 MB / 1.266 GB, free: 15.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008737/1.026, allocations: 201.5 kB / 1.267 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/1.028, allocations: 1.033 MB / 1.268 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/1.028, allocations: 0.9049 MB / 1.269 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002888/1.028, allocations: 113.9 kB / 1.269 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.326e-05/1.029, allocations: 46.73 kB / 1.269 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of SimCode: time 4.3e-07/1.029, allocations: 0 / 1.269 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of Templates: time 0.01709/1.046, allocations: 7.693 MB / 1.276 GB, free: 13.71 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches