Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.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.ThreePhasesBalanced.Loads.Examples.Impedances,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_Impedances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_Impedances",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.001404/0.001404, allocations: 108 kB / 15.61 MB, free: 152 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.001641/0.001641, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.652/2.652, allocations: 469.4 MB / 0.742 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002264/0.002264, allocations: 67.12 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3047, allocations: 159.1 MB / 1.064 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances): time 0.006233/0.311, allocations: 4.892 MB / 1.068 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00364/0.3147, allocations: 2.494 MB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003857/0.3151, allocations: 27.75 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001168/0.3163, allocations: 405 kB / 1.071 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0009611/0.3172, allocations: 441.6 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008986/0.3181, allocations: 407.2 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001033/0.3192, allocations: 0.9173 MB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005668/0.3198, allocations: 354.8 kB / 1.073 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005096/0.3203, allocations: 338.7 kB / 1.074 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004894/0.3208, allocations: 346.4 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.347e-05/0.3209, allocations: 43.94 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006603/0.3215, allocations: 399.1 kB / 1.074 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001867/0.3217, allocations: 183.4 kB / 1.075 GB, free: 3.262 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003289/0.3221, allocations: 322.2 kB / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.3231, allocations: 0.8838 MB / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3231, allocations: 0 / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3231, allocations: 0 / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.71e-05/0.3232, allocations: 0 / 1.076 GB, free: 2.059 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.001497/0.3247, allocations: 0.9462 MB / 1.077 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.3247, allocations: 12.03 kB / 1.077 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.576e-05/0.3248, allocations: 90.69 kB / 1.077 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/0.3261, allocations: 203.9 kB / 1.077 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006595/0.3268, allocations: 498.2 kB / 1.077 GB, free: 236 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.3268, allocations: 37.36 kB / 1.077 GB, free: 200 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.753e-05/0.3269, allocations: 44.38 kB / 1.078 GB, free: 156 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.3279, allocations: 0.8446 MB / 1.078 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.328, allocations: 11.94 kB / 1.078 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.235e-05/0.328, allocations: 23.98 kB / 1.078 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.263e-05/0.3281, allocations: 60.95 kB / 1.078 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008092/0.3289, allocations: 0.5695 MB / 1.079 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003922/0.3329, allocations: 5.662 MB / 1.085 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005844/0.3335, allocations: 454.8 kB / 1.085 GB, free: 8 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002792/0.3338, allocations: 224.7 kB / 1.085 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.3338, allocations: 4.531 kB / 1.085 GB, free: 7.773 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.3338, allocations: 42.56 kB / 1.085 GB, free: 7.723 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=32): time 1.734e-06/0.3338, allocations: 0 / 1.085 GB, free: 7.723 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33): time 0.002417/0.3362, allocations: 1.515 MB / 1.087 GB, free: 6.09 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.3363, allocations: 55.69 kB / 1.087 GB, free: 6.023 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004722/0.3368, allocations: 0.4952 MB / 1.087 GB, free: 5.516 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.3368, allocations: 29.7 kB / 1.087 GB, free: 5.48 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002111/0.337, allocations: 366.8 kB / 1.088 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.422e-05/0.3371, allocations: 118.3 kB / 1.088 GB, free: 5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.3373, allocations: 118.2 kB / 1.088 GB, free: 4.875 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.3374, allocations: 366.8 kB / 1.088 GB, free: 4.508 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.3377, allocations: 189.2 kB / 1.088 GB, free: 4.324 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003926/0.3381, allocations: 451.3 kB / 1.089 GB, free: 3.766 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007428/0.3388, allocations: 0.6874 MB / 1.089 GB, free: 2.961 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3388, allocations: 0 / 1.089 GB, free: 2.961 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001227/0.3401, allocations: 0.8097 MB / 1.09 GB, free: 2.129 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3401, allocations: 12.22 kB / 1.09 GB, free: 2.117 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.3401, allocations: 8 kB / 1.09 GB, free: 2.109 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004671/0.3406, allocations: 160 kB / 1.09 GB, free: 1.938 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004327/0.341, allocations: 127.7 kB / 1.091 GB, free: 1.812 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002945/0.344, allocations: 4.348 MB / 1.095 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003537/0.3444, allocations: 31.97 kB / 1.095 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.3444, allocations: 31.94 kB / 1.095 GB, free: 12.99 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.0002295/0.3446, allocations: 228 kB / 1.095 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.53e-05/0.3447, allocations: 63.25 kB / 1.095 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009472/0.3457, allocations: 0.593 MB / 1.096 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3457, allocations: 7.984 kB / 1.096 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3457, allocations: 0 / 1.096 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3457, allocations: 7.984 kB / 1.096 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.3474, allocations: 1.261 MB / 1.097 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3474, allocations: 0 / 1.097 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002573/0.3476, allocations: 59.89 kB / 1.097 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003887/0.348, allocations: 140.2 kB / 1.097 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.881e-05/0.3481, allocations: 11.94 kB / 1.097 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003053/0.3511, allocations: 4.329 MB / 1.101 GB, free: 5.734 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3512, allocations: 0 / 1.101 GB, free: 5.734 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009485/0.3521, allocations: 0.7082 MB / 1.102 GB, free: 4.973 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001957/0.3523, allocations: 172.3 kB / 1.102 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.894e-05/0.3524, allocations: 11.98 kB / 1.102 GB, free: 4.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002613/0.3527, allocations: 27.97 kB / 1.102 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.387e-05/0.3527, allocations: 27.91 kB / 1.102 GB, free: 4.719 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.885e-05/0.3528, allocations: 8 kB / 1.102 GB, free: 4.711 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003368/0.3531, allocations: 338.8 kB / 1.103 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3531, allocations: 0 / 1.103 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006052/0.3537, allocations: 144 kB / 1.103 GB, free: 4.242 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.001171/0.3549, allocations: 1.264 MB / 1.104 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001389/0.3563, allocations: 1.083 MB / 1.105 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3563, allocations: 0 / 1.105 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0007785/0.3571, allocations: 0.7346 MB / 1.106 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009847/0.3581, allocations: 211 kB / 1.106 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005839/0.3639, allocations: 5.244 MB / 1.111 GB, free: 11.11 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004194/0.3644, allocations: 0.9098 MB / 1.112 GB, free: 10.17 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000344/0.3647, allocations: 125.3 kB / 1.112 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002169/0.365, allocations: 197.9 kB / 1.112 GB, free: 9.855 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.365, allocations: 0 / 1.112 GB, free: 9.855 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0356/0.4006, allocations: 12.69 MB / 1.125 GB, free: 13.43 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.682/10.08, allocations: 5.188 kB / 1.125 GB, free: 13.42 MB / 0.8887 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances_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_ThreePhasesBalanced_Loads_Examples_Impedances.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_Impedances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches