Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001508/0.001509, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001887/0.001887, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 63.05 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09127/0.09346, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.01059/0.1041, allocations: 9.734 MB / 367.3 MB, free: 4.203 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005258/0.1094, allocations: 2.756 MB / 370.1 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001482/0.1109, allocations: 75.81 kB / 370.2 MB, free: 1.363 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1553/0.2663, allocations: 4.179 MB / 374.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002692/0.269, allocations: 0.7591 MB / 375.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001875/0.2709, allocations: 0.9575 MB / 376 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003381/0.2742, allocations: 4.031 MB / 380.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01082/0.2851, allocations: 11 MB / 391.1 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002623/0.2877, allocations: 2.348 MB / 393.4 MB, free: 2.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002387/0.2901, allocations: 2.65 MB / 396.1 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006912/0.2908, allocations: 0.6647 MB / 396.7 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001268/0.2921, allocations: 0.8946 MB / 397.6 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002061/0.2942, allocations: 1.362 MB / 399 MB, free: 0 / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002549/0.2968, allocations: 2.558 MB / 401.6 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006719/0.3035, allocations: 8.854 MB / 410.4 MB, free: 5.359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.3035, allocations: 4 kB / 410.4 MB, free: 5.355 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3035, allocations: 0 / 410.4 MB, free: 5.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001165/0.3036, allocations: 0 / 410.4 MB, free: 5.355 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1224 * Number of variables: 1224 Notification: Performance of Generate backend data structure: time 0.01125/0.3149, allocations: 5.315 MB / 415.7 MB, free: 8 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/0.315, allocations: 12.02 kB / 415.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008501/0.3158, allocations: 0.6575 MB / 416.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007791/0.3236, allocations: 1.324 MB / 417.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003869/0.3275, allocations: 2.51 MB / 420.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002386/0.3278, allocations: 345.4 kB / 420.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000673/0.3284, allocations: 454.9 kB / 421 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01015/0.3386, allocations: 6.094 MB / 427.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.733e-05/0.3387, allocations: 0 / 427.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004175/0.3391, allocations: 193.7 kB / 427.3 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001645/0.3393, allocations: 193.5 kB / 427.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008725/0.348, allocations: 5.276 MB / 432.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02722/0.3753, allocations: 21.25 MB / 454 MB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006095/0.3814, allocations: 5.572 MB / 459.6 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009556/0.3824, allocations: 0.6629 MB / 460.2 MB, free: 2.047 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001858/0.3826, allocations: 194.6 kB / 460.4 MB, free: 1.824 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.3826, allocations: 47.56 kB / 460.5 MB, free: 1.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=94): time 2.375e-06/0.3826, allocations: 0 / 460.5 MB, free: 1.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.002042/0.3847, allocations: 1.424 MB / 461.9 MB, free: 344 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.3847, allocations: 64.34 kB / 462 MB, free: 268 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001879/0.3866, allocations: 1.461 MB / 463.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.864e-05/0.3867, allocations: 41.7 kB / 463.5 MB, free: 14.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001118/0.3878, allocations: 1.965 MB / 465.4 MB, free: 12.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002717/0.3881, allocations: 351.8 kB / 465.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005767/0.3887, allocations: 475.5 kB / 466.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3888, allocations: 357.9 kB / 466.6 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/0.3899, allocations: 0.8046 MB / 467.4 MB, free: 10.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001814/0.3918, allocations: 1.936 MB / 469.3 MB, free: 8.297 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003043/0.3948, allocations: 2.927 MB / 472.3 MB, free: 4.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.002e-05/0.3948, allocations: 12 kB / 472.3 MB, free: 4.809 MB / 382.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.003876/0.3987, allocations: 2.785 MB / 475.1 MB, free: 2.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.638e-05/0.3988, allocations: 30.8 kB / 475.1 MB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.196e-05/0.3988, allocations: 40 kB / 475.1 MB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.598e-05/0.3989, allocations: 52 kB / 475.2 MB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.4005, allocations: 0.5342 MB / 475.7 MB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.441e-05/0.4006, allocations: 79.72 kB / 475.8 MB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/0.4018, allocations: 301.3 kB / 476.1 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001496/0.4019, allocations: 120 kB / 476.2 MB, free: 0.875 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 178 * 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 (282): * Single equations (assignments): 281 * 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.002143/0.4041, allocations: 1.671 MB / 477.9 MB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/0.4043, allocations: 130.3 kB / 478 MB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.4062, allocations: 1.334 MB / 479.3 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001196/0.4074, allocations: 0.9318 MB / 480.3 MB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4074, allocations: 3.938 kB / 480.3 MB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.4074, allocations: 3.984 kB / 480.3 MB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01499/0.4224, allocations: 13.5 MB / 493.8 MB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.26e-05/0.4225, allocations: 16 kB / 493.8 MB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007152/0.4232, allocations: 219.6 kB / 494 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.558e-05/0.4233, allocations: 24 kB / 494 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.576e-05/0.4233, allocations: 40 kB / 494.1 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.462e-05/0.4234, allocations: 39.86 kB / 494.1 MB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-05/0.4234, allocations: 35.8 kB / 494.1 MB, free: 14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/0.4261, allocations: 2.442 MB / 496.6 MB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004998/0.4266, allocations: 319.2 kB / 496.9 MB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002149/0.4268, allocations: 43.98 kB / 496.9 MB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007483/0.4276, allocations: 67.88 kB / 497 MB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.4278, allocations: 143.4 kB / 497.1 MB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.493e-05/0.4279, allocations: 48 kB / 497.2 MB, free: 10.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001313/0.4292, allocations: 0.9916 MB / 498.2 MB, free: 9.648 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4292, allocations: 0 / 498.2 MB, free: 9.648 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002487/0.4317, allocations: 0.9398 MB / 499.1 MB, free: 8.703 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 87 * 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 (98): * Single equations (assignments): 97 * 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.00314/0.4348, allocations: 3.095 MB / 0.4904 GB, free: 5.324 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002907/0.4377, allocations: 1.865 MB / 0.4923 GB, free: 3.461 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/0.4378, allocations: 4.438 kB / 0.4923 GB, free: 3.457 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007711/0.4385, allocations: 0.5765 MB / 0.4928 GB, free: 2.883 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/0.4407, allocations: 381.4 kB / 0.4932 GB, free: 2.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02945/0.4701, allocations: 20.22 MB / 0.5129 GB, free: 12.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003549/0.4737, allocations: 3.075 MB / 0.5159 GB, free: 9.152 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001998/0.4757, allocations: 0.8132 MB / 0.5167 GB, free: 8.332 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001542/0.4773, allocations: 1.249 MB / 0.518 GB, free: 7.082 MB / 446.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4773, allocations: 0 / 0.518 GB, free: 7.082 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2027/0.68, allocations: 41.24 MB / 0.5582 GB, free: 128.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.696/8.376, allocations: 15.56 kB / 0.5583 GB, free: 128.7 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/BalancingStar/BalancingStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches