Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.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) 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(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingDelta",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingDelta",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.001226/0.001226, allocations: 112.6 kB / 17.07 MB, free: 5.988 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.001486/0.001486, allocations: 195 kB / 18 MB, free: 5.074 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.343/1.343, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 51.91 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2967, allocations: 49.43 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta): time 0.009882/0.3067, allocations: 9.132 MB / 409.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005013/0.3117, allocations: 2.569 MB / 411.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007579/0.3125, allocations: 63.88 kB / 412 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007586/0.3201, allocations: 3.749 MB / 415.8 MB, free: 9.219 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002914/0.3231, allocations: 0.901 MB / 416.7 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.3248, allocations: 0.7945 MB / 417.4 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003957/0.3287, allocations: 3.63 MB / 421.1 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0112/0.3399, allocations: 9.513 MB / 430.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002775/0.3427, allocations: 2.092 MB / 432.7 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003025/0.3458, allocations: 2.371 MB / 435.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007077/0.3465, allocations: 0.5937 MB / 435.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001342/0.3479, allocations: 0.8005 MB / 436.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008749/0.3487, allocations: 1.111 MB / 437.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002415/0.3512, allocations: 2.268 MB / 439.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00749/0.3587, allocations: 7.904 MB / 447.7 MB, free: 9.086 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.3587, allocations: 4 kB / 447.7 MB, free: 9.082 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3587, allocations: 0 / 447.7 MB, free: 9.082 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000138/0.3588, allocations: 4 kB / 447.7 MB, free: 9.078 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1104 * Number of variables: 1104 Notification: Performance of Generate backend data structure: time 0.01083/0.3697, allocations: 4.933 MB / 452.7 MB, free: 4.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.3697, allocations: 8.031 kB / 452.7 MB, free: 4.062 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007875/0.3705, allocations: 0.5962 MB / 453.3 MB, free: 3.453 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00723/0.3778, allocations: 1.282 MB / 454.6 MB, free: 2.168 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00418/0.382, allocations: 2.323 MB / 456.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002215/0.3822, allocations: 312.4 kB / 457.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006533/0.3829, allocations: 411.9 kB / 457.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009102/0.392, allocations: 5.465 MB / 463.1 MB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.417e-05/0.3921, allocations: 11.94 kB / 463.1 MB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003737/0.3925, allocations: 168 kB / 463.2 MB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001537/0.3926, allocations: 180.6 kB / 463.4 MB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007671/0.4003, allocations: 4.796 MB / 468.2 MB, free: 4.402 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02513/0.4255, allocations: 19.1 MB / 487.3 MB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004647/0.4301, allocations: 3.891 MB / 491.2 MB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001237/0.4314, allocations: 0.7816 MB / 492 MB, free: 11.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/0.4316, allocations: 110.1 kB / 492.1 MB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.4316, allocations: 43.56 kB / 492.1 MB, free: 11.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=100): time 2.775e-06/0.4316, allocations: 0 / 492.1 MB, free: 11.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=100): time 0.002377/0.434, allocations: 1.554 MB / 493.7 MB, free: 9.781 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.4341, allocations: 64.41 kB / 493.7 MB, free: 9.707 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001972/0.4361, allocations: 1.342 MB / 495.1 MB, free: 8.348 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.98e-05/0.4361, allocations: 41.7 kB / 495.1 MB, free: 8.301 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.4373, allocations: 1.823 MB / 497 MB, free: 6.457 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003223/0.4376, allocations: 381 kB / 497.3 MB, free: 6.082 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006034/0.4382, allocations: 447.7 kB / 497.8 MB, free: 5.637 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4384, allocations: 357.9 kB / 498.1 MB, free: 5.281 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.4396, allocations: 0.8239 MB / 498.9 MB, free: 4.453 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001885/0.4415, allocations: 1.823 MB / 0.489 GB, free: 2.148 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003237/0.4447, allocations: 2.794 MB / 0.4917 GB, free: 14.88 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-05/0.4447, allocations: 12 kB / 0.4918 GB, free: 14.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=273) (initialization): time 0.004196/0.4489, allocations: 2.738 MB / 0.4944 GB, free: 12.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/0.449, allocations: 19.44 kB / 0.4945 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.272e-05/0.4491, allocations: 36 kB / 0.4945 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.988e-05/0.4491, allocations: 48 kB / 0.4945 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001628/0.4508, allocations: 0.5226 MB / 0.495 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.132e-05/0.4509, allocations: 75.66 kB / 0.4951 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.4522, allocations: 294 kB / 0.4954 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001737/0.4524, allocations: 115.9 kB / 0.4955 GB, free: 11.03 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * 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 (272): * Single equations (assignments): 271 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002316/0.4547, allocations: 1.484 MB / 0.497 GB, free: 9.531 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002576/0.455, allocations: 131.1 kB / 0.4971 GB, free: 9.402 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002344/0.4573, allocations: 1.458 MB / 0.4985 GB, free: 7.918 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001458/0.4588, allocations: 1.037 MB / 0.4995 GB, free: 6.875 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.4588, allocations: 0 / 0.4995 GB, free: 6.875 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.4588, allocations: 3.984 kB / 0.4995 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01656/0.4754, allocations: 12.29 MB / 0.5115 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.962e-05/0.4755, allocations: 23.98 kB / 0.5116 GB, free: 9.863 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008384/0.4763, allocations: 223.6 kB / 0.5118 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.894e-05/0.4764, allocations: 28 kB / 0.5118 GB, free: 9.617 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/0.4765, allocations: 55.92 kB / 0.5118 GB, free: 9.562 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.434e-05/0.4765, allocations: 43.8 kB / 0.5119 GB, free: 9.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.037e-05/0.4766, allocations: 31.88 kB / 0.5119 GB, free: 9.488 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.4798, allocations: 2.664 MB / 0.5145 GB, free: 6.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006826/0.4805, allocations: 339.9 kB / 0.5148 GB, free: 6.168 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/0.4808, allocations: 51.98 kB / 0.5149 GB, free: 6.117 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009254/0.4818, allocations: 67.94 kB / 0.515 GB, free: 6.051 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.4819, allocations: 143.3 kB / 0.5151 GB, free: 5.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.63e-05/0.482, allocations: 63.98 kB / 0.5152 GB, free: 5.848 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001332/0.4834, allocations: 0.9023 MB / 0.516 GB, free: 4.938 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4834, allocations: 4 kB / 0.516 GB, free: 4.934 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002615/0.486, allocations: 0.8793 MB / 0.5169 GB, free: 4.051 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 95 * Number of states: 1 (voltageSource.plug_p.reference.gamma) * 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 (106): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003723/0.4897, allocations: 3.309 MB / 0.5201 GB, free: 436 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002867/0.4926, allocations: 1.921 MB / 0.522 GB, free: 14.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/0.4927, allocations: 6 kB / 0.522 GB, free: 14.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009004/0.4936, allocations: 0.6326 MB / 0.5226 GB, free: 13.87 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/0.4957, allocations: 333.5 kB / 0.5229 GB, free: 13.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2268/0.7225, allocations: 18.61 MB / 0.5411 GB, free: 127 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001902/0.7244, allocations: 2.807 MB / 0.5439 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001393/0.7258, allocations: 0.7612 MB / 0.5446 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.7268, allocations: 1.144 MB / 0.5457 GB, free: 124.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.493e-06/0.7268, allocations: 0 / 0.5457 GB, free: 124.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0521/0.7789, allocations: 39.36 MB / 0.5842 GB, free: 90.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.872/10.65, allocations: 7.312 kB / 0.5842 GB, free: 90.04 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingDelta.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/BalancingDelta/BalancingDelta.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches