Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_9_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.007692/0.007692, allocations: 97.62 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.002072/0.002072, allocations: 201.9 kB / 16.68 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.272/2.272, allocations: 390.2 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 62.88 kB / 0.9504 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2486, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005975/0.2546, allocations: 4.853 MB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003787/0.2584, allocations: 2.455 MB / 1.095 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000348/0.2588, allocations: 23.81 kB / 1.095 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001134/0.26, allocations: 399.6 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001025/0.261, allocations: 469.7 kB / 1.095 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000846/0.2618, allocations: 373.9 kB / 1.096 GB, free: 9.441 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001084/0.2629, allocations: 0.9173 MB / 1.097 GB, free: 8.52 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004904/0.2634, allocations: 366.8 kB / 1.097 GB, free: 8.156 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004213/0.2639, allocations: 338.7 kB / 1.097 GB, free: 7.824 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004016/0.2643, allocations: 342.5 kB / 1.098 GB, free: 7.488 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.061e-05/0.2643, allocations: 43.94 kB / 1.098 GB, free: 7.445 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005837/0.2649, allocations: 407.1 kB / 1.098 GB, free: 7.047 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.2651, allocations: 175.5 kB / 1.098 GB, free: 6.875 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002789/0.2654, allocations: 322.2 kB / 1.099 GB, free: 6.559 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008968/0.2663, allocations: 0.8831 MB / 1.099 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2663, allocations: 3.938 kB / 1.099 GB, free: 5.668 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2663, allocations: 0 / 1.099 GB, free: 5.668 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.95e-05/0.2663, allocations: 0 / 1.099 GB, free: 5.668 MB / 0.8575 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.001432/0.2678, allocations: 0.9649 MB / 1.1 GB, free: 4.652 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.2678, allocations: 8.031 kB / 1.1 GB, free: 4.645 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.357e-05/0.2679, allocations: 94.69 kB / 1.101 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/0.2692, allocations: 200.3 kB / 1.101 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007981/0.27, allocations: 0.5339 MB / 1.101 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.27, allocations: 33.31 kB / 1.101 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.539e-05/0.2701, allocations: 56.34 kB / 1.101 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.2712, allocations: 0.8446 MB / 1.102 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.2712, allocations: 15.89 kB / 1.102 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.155e-05/0.2713, allocations: 23.98 kB / 1.102 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.564e-05/0.2714, allocations: 64.95 kB / 1.102 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007896/0.2722, allocations: 0.5694 MB / 1.103 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004148/0.2763, allocations: 5.647 MB / 1.108 GB, free: 12 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006081/0.2769, allocations: 454.8 kB / 1.109 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002967/0.2772, allocations: 224.7 kB / 1.109 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.2773, allocations: 7.938 kB / 1.109 GB, free: 11.31 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.2773, allocations: 47.08 kB / 1.109 GB, free: 11.26 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=32): time 1.503e-06/0.2773, allocations: 0 / 1.109 GB, free: 11.26 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33): time 0.002496/0.2798, allocations: 1.509 MB / 1.11 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.2799, allocations: 55.69 kB / 1.111 GB, free: 9.566 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005333/0.2804, allocations: 0.4912 MB / 1.111 GB, free: 9.062 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.728e-05/0.2804, allocations: 29.7 kB / 1.111 GB, free: 9.027 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.2807, allocations: 363.8 kB / 1.111 GB, free: 8.668 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 9.8e-05/0.2808, allocations: 123 kB / 1.112 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.2809, allocations: 118.2 kB / 1.112 GB, free: 8.426 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.2811, allocations: 358.8 kB / 1.112 GB, free: 8.066 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002911/0.2814, allocations: 201.1 kB / 1.112 GB, free: 7.867 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003993/0.2818, allocations: 447 kB / 1.113 GB, free: 7.316 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007321/0.2825, allocations: 0.6954 MB / 1.113 GB, free: 6.504 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2825, allocations: 4 kB / 1.113 GB, free: 6.5 MB / 0.8731 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00123/0.2838, allocations: 0.8059 MB / 1.114 GB, free: 5.672 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.2838, allocations: 14.2 kB / 1.114 GB, free: 5.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.2838, allocations: 12 kB / 1.114 GB, free: 5.648 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004774/0.2843, allocations: 152.1 kB / 1.114 GB, free: 5.484 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004439/0.2848, allocations: 115.8 kB / 1.114 GB, free: 5.371 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003194/0.288, allocations: 4.356 MB / 1.119 GB, free: 0.5977 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003483/0.2883, allocations: 39.97 kB / 1.119 GB, free: 0.5586 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.2884, allocations: 24 kB / 1.119 GB, free: 0.5352 MB / 0.8731 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.0002202/0.2886, allocations: 209.6 kB / 1.119 GB, free: 328 kB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.265e-05/0.2887, allocations: 67.62 kB / 1.119 GB, free: 260 kB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000967/0.2897, allocations: 0.5969 MB / 1.119 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2897, allocations: 4 kB / 1.119 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.2897, allocations: 7.984 kB / 1.12 GB, free: 15.62 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2897, allocations: 3.984 kB / 1.12 GB, free: 15.62 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/0.2914, allocations: 1.254 MB / 1.121 GB, free: 14.27 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2915, allocations: 0 / 1.121 GB, free: 14.27 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.2917, allocations: 55.89 kB / 1.121 GB, free: 14.21 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003985/0.2921, allocations: 148.2 kB / 1.121 GB, free: 14.06 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.2922, allocations: 11.94 kB / 1.121 GB, free: 14.05 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003079/0.2953, allocations: 4.348 MB / 1.125 GB, free: 9.277 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2953, allocations: 0 / 1.125 GB, free: 9.277 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009418/0.2962, allocations: 0.7162 MB / 1.126 GB, free: 8.508 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000228/0.2965, allocations: 168.7 kB / 1.126 GB, free: 8.324 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.221e-05/0.2965, allocations: 8 kB / 1.126 GB, free: 8.316 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.2968, allocations: 23.97 kB / 1.126 GB, free: 8.293 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.026e-05/0.2969, allocations: 35.84 kB / 1.126 GB, free: 8.258 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.217e-05/0.2969, allocations: 12 kB / 1.126 GB, free: 8.246 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.00034/0.2972, allocations: 330.8 kB / 1.126 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2972, allocations: 0 / 1.126 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0006123/0.2979, allocations: 144 kB / 1.127 GB, free: 7.785 MB / 0.8887 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.001213/0.2991, allocations: 1.261 MB / 1.128 GB, free: 6.457 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001313/0.3004, allocations: 1.04 MB / 1.129 GB, free: 5.336 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3004, allocations: 0 / 1.129 GB, free: 5.336 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0007969/0.3012, allocations: 0.7393 MB / 1.13 GB, free: 4.516 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009549/0.3022, allocations: 205.5 kB / 1.13 GB, free: 4.324 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005696/0.3079, allocations: 5.105 MB / 1.135 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004353/0.3084, allocations: 0.9097 MB / 1.136 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0003021/0.3087, allocations: 121.3 kB / 1.136 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.3089, allocations: 195.4 kB / 1.136 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.3089, allocations: 0 / 1.136 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03716/0.3461, allocations: 12.7 MB / 1.148 GB, free: 1.102 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.887/10.23, allocations: 5.469 kB / 1.148 GB, free: 1.098 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches