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 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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_latest_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.001104/0.001104, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 198.3 kB / 16.53 MB, free: 6.668 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.648/2.648, allocations: 469.4 MB / 0.742 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 63.67 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2475, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006024/0.2535, allocations: 4.859 MB / 1.068 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003686/0.2572, allocations: 2.447 MB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000371/0.2576, allocations: 27.75 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001124/0.2588, allocations: 409.9 kB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0009637/0.2597, allocations: 441.7 kB / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008134/0.2606, allocations: 369.2 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009391/0.2615, allocations: 0.9212 MB / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005149/0.262, allocations: 350.8 kB / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004407/0.2625, allocations: 334.8 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004525/0.2629, allocations: 350.4 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.662e-05/0.263, allocations: 36 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006416/0.2637, allocations: 407.1 kB / 1.074 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.2639, allocations: 175.5 kB / 1.074 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003128/0.2642, allocations: 326.2 kB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009011/0.2651, allocations: 0.8642 MB / 1.076 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.2651, allocations: 8 kB / 1.076 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2651, allocations: 0 / 1.076 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.89e-05/0.2651, allocations: 4 kB / 1.076 GB, free: 2.191 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.00134/0.2665, allocations: 0.9285 MB / 1.077 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.2665, allocations: 12.03 kB / 1.077 GB, free: 1.203 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.557e-05/0.2666, allocations: 98.67 kB / 1.077 GB, free: 1.098 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00123/0.2679, allocations: 203.8 kB / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006062/0.2685, allocations: 486.4 kB / 1.077 GB, free: 396 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.2685, allocations: 33.38 kB / 1.077 GB, free: 364 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.113e-05/0.2686, allocations: 52.27 kB / 1.077 GB, free: 312 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009557/0.2696, allocations: 0.8485 MB / 1.078 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.2696, allocations: 7.938 kB / 1.078 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.174e-05/0.2697, allocations: 23.98 kB / 1.078 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.545e-05/0.2697, allocations: 60.95 kB / 1.078 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000787/0.2705, allocations: 0.5734 MB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003784/0.2743, allocations: 5.643 MB / 1.084 GB, free: 8.621 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005848/0.2749, allocations: 458.3 kB / 1.085 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/0.2752, allocations: 233.2 kB / 1.085 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.2753, allocations: 8.469 kB / 1.085 GB, free: 7.926 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.2753, allocations: 34.56 kB / 1.085 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=32): time 1.523e-06/0.2753, allocations: 0 / 1.085 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33): time 0.002362/0.2777, allocations: 1.515 MB / 1.087 GB, free: 6.25 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.2777, allocations: 59.69 kB / 1.087 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000445/0.2782, allocations: 491 kB / 1.087 GB, free: 5.688 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.2782, allocations: 33.7 kB / 1.087 GB, free: 5.648 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.2784, allocations: 362.8 kB / 1.087 GB, free: 5.289 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.349e-05/0.2785, allocations: 118.3 kB / 1.088 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.2786, allocations: 110.2 kB / 1.088 GB, free: 5.055 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.2788, allocations: 362.8 kB / 1.088 GB, free: 4.691 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002642/0.279, allocations: 201.2 kB / 1.088 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003947/0.2794, allocations: 443.3 kB / 1.089 GB, free: 3.945 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007359/0.2802, allocations: 0.6835 MB / 1.089 GB, free: 3.145 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2802, allocations: 4 kB / 1.089 GB, free: 3.141 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001186/0.2814, allocations: 0.813 MB / 1.09 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.2814, allocations: 8 kB / 1.09 GB, free: 2.297 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.2814, allocations: 8.875 kB / 1.09 GB, free: 2.289 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004461/0.2819, allocations: 156.1 kB / 1.09 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004261/0.2823, allocations: 127.7 kB / 1.09 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002897/0.2852, allocations: 4.344 MB / 1.095 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003327/0.2856, allocations: 35.97 kB / 1.095 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.915e-05/0.2856, allocations: 31.98 kB / 1.095 GB, free: 13.17 MB / 0.8575 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.0002103/0.2858, allocations: 215.9 kB / 1.095 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.223e-05/0.2859, allocations: 63.41 kB / 1.095 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009362/0.2869, allocations: 0.5968 MB / 1.096 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2869, allocations: 4 kB / 1.096 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.2869, allocations: 0 / 1.096 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.2869, allocations: 3.984 kB / 1.096 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.2885, allocations: 1.253 MB / 1.097 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.2885, allocations: 4 kB / 1.097 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002488/0.2888, allocations: 51.89 kB / 1.097 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003674/0.2891, allocations: 148.3 kB / 1.097 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/0.2892, allocations: 11.94 kB / 1.097 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002831/0.292, allocations: 4.337 MB / 1.101 GB, free: 5.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.77e-06/0.292, allocations: 7.969 kB / 1.101 GB, free: 5.922 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009275/0.293, allocations: 0.7005 MB / 1.102 GB, free: 5.168 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.2932, allocations: 164.3 kB / 1.102 GB, free: 4.988 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.6e-05/0.2932, allocations: 11.98 kB / 1.102 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.2935, allocations: 15.98 kB / 1.102 GB, free: 4.961 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.06e-05/0.2936, allocations: 43.83 kB / 1.102 GB, free: 4.918 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.2936, allocations: 15.94 kB / 1.102 GB, free: 4.902 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000321/0.2939, allocations: 330.8 kB / 1.102 GB, free: 4.582 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2939, allocations: 0 / 1.102 GB, free: 4.582 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005737/0.2945, allocations: 140 kB / 1.103 GB, free: 4.445 MB / 0.8575 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.001183/0.2957, allocations: 1.264 MB / 1.104 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001406/0.2971, allocations: 1.076 MB / 1.105 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2971, allocations: 4.125 kB / 1.105 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0007722/0.2979, allocations: 0.7379 MB / 1.106 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009428/0.2989, allocations: 210.5 kB / 1.106 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005717/0.3046, allocations: 5.178 MB / 1.111 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004362/0.305, allocations: 0.9097 MB / 1.112 GB, free: 10.44 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003323/0.3054, allocations: 121.2 kB / 1.112 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002225/0.3056, allocations: 203.2 kB / 1.112 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of SimCode: time 4.81e-07/0.3056, allocations: 0 / 1.112 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03425/0.3399, allocations: 12.54 MB / 1.124 GB, free: 13.82 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.021/9.361, allocations: 11.98 kB / 1.124 GB, free: 13.81 MB / 0.8887 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","/var/lib/jenkins1/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