Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_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.001367/0.001367, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.00139/0.00139, allocations: 188.2 kB / 18.66 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 51.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09273/0.09413, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar): time 0.2139/0.3081, allocations: 10.08 MB / 384.7 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006235/0.3144, allocations: 2.813 MB / 387.5 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.3164, allocations: 64.66 kB / 387.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009302/0.3257, allocations: 4.22 MB / 391.8 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004397/0.3301, allocations: 1.048 MB / 392.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00243/0.3326, allocations: 0.8242 MB / 393.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005302/0.3379, allocations: 4.285 MB / 398 MB, free: 448 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01864/0.3566, allocations: 11 MB / 409 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005141/0.3618, allocations: 2.461 MB / 411.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005298/0.3671, allocations: 2.789 MB / 414.2 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002124/0.3692, allocations: 0.6797 MB / 414.9 MB, free: 7.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003201/0.3725, allocations: 0.8865 MB / 415.8 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002232/0.3747, allocations: 1.321 MB / 417.1 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004953/0.3797, allocations: 2.673 MB / 419.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01029/0.39, allocations: 9.099 MB / 428.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.39, allocations: 0 / 428.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.39, allocations: 0 / 428.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002675/0.3903, allocations: 0 / 428.9 MB, free: 9.688 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.01538/0.4057, allocations: 5.673 MB / 434.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.4058, allocations: 8.031 kB / 434.6 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001875/0.4077, allocations: 0.6989 MB / 435.3 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01407/0.4218, allocations: 2.409 MB / 437.7 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005221/0.427, allocations: 2.381 MB / 440.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000324/0.4274, allocations: 361.9 kB / 440.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001491/0.4289, allocations: 483.9 kB / 440.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01451/0.4434, allocations: 6.64 MB / 447.5 MB, free: 6.875 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001483/0.4436, allocations: 7.953 kB / 447.5 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009754/0.4446, allocations: 200 kB / 447.7 MB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002266/0.4448, allocations: 234.1 kB / 448 MB, free: 6.441 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0112/0.456, allocations: 6.11 MB / 454.1 MB, free: 328 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03645/0.4925, allocations: 22.42 MB / 476.5 MB, free: 9.145 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0112/0.5037, allocations: 10.78 MB / 487.3 MB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001525/0.5053, allocations: 0.8149 MB / 488.1 MB, free: 11.87 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006201/0.5115, allocations: 3.395 MB / 491.5 MB, free: 8.125 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.5116, allocations: 34.5 kB / 491.5 MB, free: 8.082 MB / 414.1 MB Notification: Performance of pre-optimization done (n=6): time 2.565e-06/0.5116, allocations: 4 kB / 491.5 MB, free: 8.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006897/0.5123, allocations: 236.7 kB / 491.8 MB, free: 7.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.5124, allocations: 55.41 kB / 491.8 MB, free: 7.773 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003927/0.5163, allocations: 2.141 MB / 493.9 MB, free: 5.625 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.5163, allocations: 25.7 kB / 494 MB, free: 5.594 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002017/0.5184, allocations: 2.475 MB / 496.4 MB, free: 3.094 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.5185, allocations: 83.72 kB / 496.5 MB, free: 3.012 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009578/0.5195, allocations: 0.5472 MB / 497.1 MB, free: 2.457 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.5197, allocations: 357.9 kB / 497.4 MB, free: 2.102 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.5209, allocations: 0.8089 MB / 498.2 MB, free: 1.289 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002347/0.5233, allocations: 2.239 MB / 0.4887 GB, free: 14.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003306/0.5266, allocations: 2.968 MB / 0.4916 GB, free: 10.66 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-05/0.5267, allocations: 12 kB / 0.4917 GB, free: 10.65 MB / 430.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.005155/0.5318, allocations: 3.02 MB / 0.4946 GB, free: 7.621 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.906e-05/0.5319, allocations: 29 kB / 0.4946 GB, free: 7.594 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.146e-05/0.532, allocations: 52 kB / 0.4947 GB, free: 7.543 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.277e-05/0.5321, allocations: 75.94 kB / 0.4948 GB, free: 7.469 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001792/0.5339, allocations: 0.5732 MB / 0.4953 GB, free: 6.895 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.059e-05/0.534, allocations: 103.6 kB / 0.4954 GB, free: 6.793 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002217/0.5362, allocations: 405.2 kB / 0.4958 GB, free: 6.395 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002181/0.5365, allocations: 148 kB / 0.4959 GB, free: 6.25 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 229 * 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 (307): * Single equations (assignments): 306 * 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.003022/0.5395, allocations: 1.726 MB / 0.4976 GB, free: 4.512 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002843/0.5398, allocations: 147 kB / 0.4978 GB, free: 4.367 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005405/0.5403, allocations: 239 kB / 0.498 GB, free: 4.125 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001243/0.5405, allocations: 101.5 kB / 0.4981 GB, free: 4.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.5405, allocations: 0 / 0.4981 GB, free: 4.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.5405, allocations: 0 / 0.4981 GB, free: 4.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006407/0.5469, allocations: 3.049 MB / 0.5011 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.5469, allocations: 7.969 kB / 0.5011 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.474e-05/0.547, allocations: 15.98 kB / 0.5011 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.547, allocations: 0 / 0.5011 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.547, allocations: 4 kB / 0.5011 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.5471, allocations: 4 kB / 0.5011 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.5471, allocations: 0 / 0.5011 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005012/0.5476, allocations: 367.1 kB / 0.5014 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005227/0.5481, allocations: 232.2 kB / 0.5017 GB, free: 264 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002339/0.5484, allocations: 11.94 kB / 0.5017 GB, free: 252 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005308/0.5489, allocations: 23.97 kB / 0.5017 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.591e-05/0.5489, allocations: 7.984 kB / 0.5017 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.467e-06/0.5489, allocations: 4 kB / 0.5017 GB, free: 216 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002188/0.5511, allocations: 1.4 MB / 0.5031 GB, free: 14.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5512, allocations: 0 / 0.5031 GB, free: 14.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002722/0.5539, allocations: 0.9997 MB / 0.5041 GB, free: 13.81 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (7): * Single equations (assignments): 6 * 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.001062/0.555, allocations: 0.9621 MB / 0.505 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002315/0.5573, allocations: 1.473 MB / 0.5064 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5573, allocations: 0 / 0.5064 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 6.303e-05/0.5574, allocations: 35.92 kB / 0.5065 GB, free: 11.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/0.5591, allocations: 342.2 kB / 0.5068 GB, free: 10.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0315/0.5906, allocations: 19.28 MB / 0.5256 GB, free: 6.031 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003698/0.5943, allocations: 3.136 MB / 0.5287 GB, free: 2.867 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001793/0.5962, allocations: 0.7944 MB / 0.5295 GB, free: 2.066 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001628/0.5978, allocations: 1.319 MB / 0.5307 GB, free: 0.7461 MB / 462.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5978, allocations: 0 / 0.5307 GB, free: 0.7461 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2615/0.8594, allocations: 43.39 MB / 0.5731 GB, free: 144.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/11.15, allocations: 8.844 kB / 0.5731 GB, free: 144.1 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.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_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/MultiPhase/Examples/BalancingStar/BalancingStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches