Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008216/0.008217, allocations: 102.1 kB / 15.73 MB, free: 6.047 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.001574/0.001574, allocations: 188.3 kB / 16.67 MB, free: 5.98 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.508/2.508, allocations: 437 MB / 0.7105 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 59.91 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.267, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006477/0.2735, allocations: 4.844 MB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003968/0.2776, allocations: 2.455 MB / 1.173 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006161/0.2782, allocations: 23.72 kB / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001418/0.2797, allocations: 397.9 kB / 1.174 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001424/0.2811, allocations: 473.6 kB / 1.174 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.2822, allocations: 382.9 kB / 1.175 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.00128/0.2835, allocations: 0.9173 MB / 1.175 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005785/0.2841, allocations: 353.3 kB / 1.176 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005251/0.2846, allocations: 350.6 kB / 1.176 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004068/0.285, allocations: 342.5 kB / 1.176 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.581e-05/0.2851, allocations: 40 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007083/0.2858, allocations: 399.1 kB / 1.177 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000193/0.286, allocations: 183.4 kB / 1.177 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002703/0.2863, allocations: 322.2 kB / 1.177 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0009192/0.2872, allocations: 0.8806 MB / 1.178 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2872, allocations: 0 / 1.178 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.723e-06/0.2872, allocations: 0 / 1.178 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.377e-06/0.2873, allocations: 0 / 1.178 GB, free: 10.96 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001268/0.2885, allocations: 0.9308 MB / 1.179 GB, free: 9.984 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.2886, allocations: 11.97 kB / 1.179 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.613e-05/0.2887, allocations: 94.69 kB / 1.179 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/0.2899, allocations: 203.9 kB / 1.179 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007221/0.2906, allocations: 0.5373 MB / 1.18 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.2906, allocations: 37.38 kB / 1.18 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.486e-05/0.2907, allocations: 44.36 kB / 1.18 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009617/0.2917, allocations: 0.8522 MB / 1.181 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.2917, allocations: 3.938 kB / 1.181 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.617e-05/0.2918, allocations: 27.98 kB / 1.181 GB, free: 8 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.403e-05/0.2919, allocations: 64.95 kB / 1.181 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007989/0.2927, allocations: 0.5656 MB / 1.181 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003926/0.2966, allocations: 5.654 MB / 1.187 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006363/0.2973, allocations: 462.6 kB / 1.187 GB, free: 0.8633 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002964/0.2976, allocations: 228.7 kB / 1.188 GB, free: 0.6367 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.2976, allocations: 0 / 1.188 GB, free: 0.6367 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.2976, allocations: 38.56 kB / 1.188 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=32): time 1.884e-06/0.2976, allocations: 0 / 1.188 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of matching and sorting (n=33): time 0.00245/0.3001, allocations: 1.501 MB / 1.189 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.3002, allocations: 55.69 kB / 1.189 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004662/0.3006, allocations: 495 kB / 1.19 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.3007, allocations: 33.7 kB / 1.19 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002136/0.3009, allocations: 358.7 kB / 1.19 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.741e-05/0.301, allocations: 122.3 kB / 1.19 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.3011, allocations: 110.2 kB / 1.19 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3013, allocations: 362.8 kB / 1.191 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.3016, allocations: 193.2 kB / 1.191 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000414/0.302, allocations: 451.3 kB / 1.191 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007649/0.3028, allocations: 0.6877 MB / 1.192 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3028, allocations: 7.938 kB / 1.192 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001227/0.304, allocations: 0.8092 MB / 1.193 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.304, allocations: 8 kB / 1.193 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.3041, allocations: 12 kB / 1.193 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005086/0.3046, allocations: 156.6 kB / 1.193 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004371/0.305, allocations: 123.8 kB / 1.193 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003361/0.3084, allocations: 4.344 MB / 1.197 GB, free: 5.957 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003839/0.3088, allocations: 35.97 kB / 1.197 GB, free: 5.922 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.371e-05/0.3089, allocations: 28 kB / 1.197 GB, free: 5.895 MB / 0.9512 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.0002999/0.3092, allocations: 214.4 kB / 1.197 GB, free: 5.676 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.765e-05/0.3093, allocations: 67.23 kB / 1.198 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009427/0.3102, allocations: 0.5971 MB / 1.198 GB, free: 4.988 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.3102, allocations: 4 kB / 1.198 GB, free: 4.984 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3102, allocations: 4 kB / 1.198 GB, free: 4.98 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3102, allocations: 0 / 1.198 GB, free: 4.98 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.312, allocations: 1.259 MB / 1.199 GB, free: 3.629 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.312, allocations: 3.984 kB / 1.199 GB, free: 3.625 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002422/0.3122, allocations: 55.95 kB / 1.199 GB, free: 3.57 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003928/0.3126, allocations: 144.3 kB / 1.2 GB, free: 3.414 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.175e-05/0.3127, allocations: 11.94 kB / 1.2 GB, free: 3.402 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002911/0.3156, allocations: 4.337 MB / 1.204 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.233e-06/0.3156, allocations: 7.938 kB / 1.204 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009365/0.3166, allocations: 0.7002 MB / 1.204 GB, free: 13.88 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002055/0.3168, allocations: 176.2 kB / 1.205 GB, free: 13.69 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.328e-05/0.3168, allocations: 12 kB / 1.205 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.3171, allocations: 23.97 kB / 1.205 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.427e-05/0.3172, allocations: 27.91 kB / 1.205 GB, free: 13.63 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.3172, allocations: 12 kB / 1.205 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000364/0.3176, allocations: 330.8 kB / 1.205 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of sort global known variables: time 3e-07/0.3176, allocations: 4 kB / 1.205 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0007098/0.3183, allocations: 140 kB / 1.205 GB, free: 13.16 MB / 0.9669 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.001334/0.3196, allocations: 1.269 MB / 1.206 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001474/0.3211, allocations: 1.04 MB / 1.207 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3211, allocations: 3.938 kB / 1.207 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0007512/0.3219, allocations: 0.7307 MB / 1.208 GB, free: 9.883 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008879/0.3228, allocations: 208.3 kB / 1.208 GB, free: 9.691 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005757/0.3286, allocations: 5.089 MB / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004288/0.329, allocations: 0.9098 MB / 1.214 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0003194/0.3293, allocations: 113.3 kB / 1.214 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002311/0.3296, allocations: 195.4 kB / 1.215 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of SimCode: time 5.41e-07/0.3296, allocations: 0 / 1.215 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03725/0.3668, allocations: 12.71 MB / 1.227 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.82, allocations: 6.969 kB / 1.227 GB, free: 6.512 MB / 0.9825 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches