Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.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.BalancingStar,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 107.8 kB / 17.06 MB, free: 6.02 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.001694/0.001694, allocations: 191 kB / 18 MB, free: 5.102 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.389/1.389, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 39.94 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2747, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.01111/0.2859, allocations: 9.734 MB / 410 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006288/0.2922, allocations: 2.678 MB / 412.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002028/0.2943, allocations: 79.75 kB / 412.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009874/0.3042, allocations: 4.203 MB / 416.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003996/0.3082, allocations: 0.9282 MB / 417.9 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002546/0.3108, allocations: 0.8118 MB / 418.7 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004885/0.3157, allocations: 4.07 MB / 422.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01583/0.3316, allocations: 10.95 MB / 433.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004077/0.3357, allocations: 2.354 MB / 436 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004409/0.3401, allocations: 2.655 MB / 438.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001851/0.342, allocations: 0.6641 MB / 439.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00273/0.3448, allocations: 0.8825 MB / 440.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001956/0.3468, allocations: 1.235 MB / 441.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004109/0.3509, allocations: 2.549 MB / 444 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01025/0.3611, allocations: 8.913 MB / 452.9 MB, free: 3.855 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3612, allocations: 3.938 kB / 453 MB, free: 3.852 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3612, allocations: 8 kB / 453 MB, free: 3.844 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002636/0.3615, allocations: 0 / 453 MB, free: 3.844 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: 1224 * Number of variables: 1224 Notification: Performance of Generate backend data structure: time 0.0153/0.3768, allocations: 5.406 MB / 458.4 MB, free: 14.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.3769, allocations: 11.89 kB / 458.4 MB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001318/0.3782, allocations: 0.6578 MB / 459 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007527/0.3857, allocations: 1.313 MB / 460.3 MB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005388/0.3911, allocations: 2.604 MB / 463 MB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003023/0.3915, allocations: 353.4 kB / 463.3 MB, free: 9.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001541/0.393, allocations: 448 kB / 463.7 MB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/0.4067, allocations: 6.102 MB / 469.8 MB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001254/0.4069, allocations: 7.953 kB / 469.8 MB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007007/0.4076, allocations: 192 kB / 470 MB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001943/0.4078, allocations: 193.5 kB / 470.2 MB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009929/0.4177, allocations: 5.272 MB / 475.5 MB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03184/0.4496, allocations: 20.78 MB / 496.3 MB, free: 7.664 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006429/0.4561, allocations: 5.572 MB / 0.4901 GB, free: 1.316 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009883/0.4571, allocations: 0.6551 MB / 0.4907 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001445/0.4573, allocations: 110 kB / 0.4908 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.4573, allocations: 47.56 kB / 0.4909 GB, free: 492 kB / 414.1 MB Notification: Performance of pre-optimization done (n=94): time 3.266e-06/0.4573, allocations: 0 / 0.4909 GB, free: 492 kB / 414.1 MB Notification: Performance of matching and sorting (n=94): time 0.002193/0.4595, allocations: 1.437 MB / 0.4923 GB, free: 15.03 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.4596, allocations: 60.41 kB / 0.4923 GB, free: 14.96 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/0.4615, allocations: 1.462 MB / 0.4938 GB, free: 13.49 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.062e-05/0.4616, allocations: 41.7 kB / 0.4938 GB, free: 13.44 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.4628, allocations: 2.041 MB / 0.4958 GB, free: 11.38 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002824/0.4631, allocations: 369 kB / 0.4961 GB, free: 11.02 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000594/0.4637, allocations: 471.9 kB / 0.4966 GB, free: 10.55 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.4639, allocations: 361.9 kB / 0.4969 GB, free: 10.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.465, allocations: 0.8085 MB / 0.4977 GB, free: 9.379 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002081/0.4671, allocations: 1.948 MB / 0.4996 GB, free: 6.875 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003045/0.4701, allocations: 2.92 MB / 0.5025 GB, free: 3.406 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.228e-05/0.4702, allocations: 16 kB / 0.5025 GB, free: 3.391 MB / 430.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004076/0.4742, allocations: 2.802 MB / 0.5052 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.296e-05/0.4743, allocations: 20 kB / 0.5053 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.717e-05/0.4744, allocations: 40 kB / 0.5053 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.924e-05/0.4744, allocations: 52 kB / 0.5053 GB, free: 488 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.476, allocations: 0.5343 MB / 0.5059 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7e-05/0.4761, allocations: 75.72 kB / 0.5059 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/0.4775, allocations: 301.9 kB / 0.5062 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001898/0.4777, allocations: 120 kB / 0.5063 GB, free: 15.45 MB / 446.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.002669/0.4804, allocations: 1.672 MB / 0.508 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003069/0.4807, allocations: 135.1 kB / 0.5081 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002067/0.4828, allocations: 1.334 MB / 0.5094 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001199/0.484, allocations: 0.9279 MB / 0.5103 GB, free: 11.35 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.484, allocations: 4 kB / 0.5103 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.4841, allocations: 7.984 kB / 0.5103 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01576/0.4998, allocations: 12.21 MB / 0.5222 GB, free: 14.51 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.311e-05/0.4999, allocations: 20 kB / 0.5223 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007153/0.5006, allocations: 208.5 kB / 0.5225 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.111e-05/0.5007, allocations: 24 kB / 0.5225 GB, free: 14.26 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-05/0.5007, allocations: 47.94 kB / 0.5225 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.957e-05/0.5008, allocations: 39.86 kB / 0.5226 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.822e-05/0.5008, allocations: 31.88 kB / 0.5226 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002769/0.5036, allocations: 2.455 MB / 0.525 GB, free: 11.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006323/0.5042, allocations: 335.9 kB / 0.5253 GB, free: 11.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001814/0.5044, allocations: 47.92 kB / 0.5254 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007018/0.5051, allocations: 63.95 kB / 0.5254 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.5053, allocations: 127.4 kB / 0.5255 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.377e-05/0.5053, allocations: 63.92 kB / 0.5256 GB, free: 10.76 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001327/0.5067, allocations: 0.9915 MB / 0.5266 GB, free: 9.762 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5067, allocations: 0 / 0.5266 GB, free: 9.762 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002644/0.5093, allocations: 0.953 MB / 0.5275 GB, free: 8.805 MB / 462.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.003168/0.5125, allocations: 3.111 MB / 0.5305 GB, free: 5.402 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002776/0.5153, allocations: 1.857 MB / 0.5324 GB, free: 3.547 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/0.5153, allocations: 4 kB / 0.5324 GB, free: 3.543 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007567/0.5161, allocations: 0.5793 MB / 0.5329 GB, free: 2.969 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002167/0.5183, allocations: 384 kB / 0.5333 GB, free: 2.598 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2611/0.7794, allocations: 19.61 MB / 0.5524 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002567/0.782, allocations: 3.075 MB / 0.5554 GB, free: 119.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001604/0.7836, allocations: 0.8179 MB / 0.5562 GB, free: 118.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/0.7847, allocations: 1.253 MB / 0.5575 GB, free: 117.2 MB / 462.1 MB Notification: Performance of SimCode: time 9.51e-07/0.7847, allocations: 0 / 0.5575 GB, free: 117.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0607/0.8454, allocations: 42.69 MB / 0.5992 GB, free: 74.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.762/10.61, allocations: 3.938 kB / 0.5992 GB, free: 74.8 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches