Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 118.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001982/0.001982, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.58/1.58, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 51.92 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1159, allocations: 53.33 MB / 426.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.2348/0.3507, allocations: 9.795 MB / 436.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00544/0.3561, allocations: 2.759 MB / 438.9 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00202/0.3582, allocations: 91.19 kB / 439 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008679/0.3668, allocations: 4.214 MB / 443.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003785/0.3706, allocations: 0.7765 MB / 443.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002948/0.3736, allocations: 0.9572 MB / 444.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006945/0.3805, allocations: 4.065 MB / 449 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01466/0.3952, allocations: 8.502 MB / 457.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005002/0.4002, allocations: 2.4 MB / 459.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006222/0.4064, allocations: 2.655 MB / 462.5 MB, free: 8.672 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002452/0.4088, allocations: 0.6625 MB / 463.2 MB, free: 8.672 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003776/0.4126, allocations: 0.8989 MB / 464.1 MB, free: 8.586 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002068/0.4147, allocations: 1.245 MB / 465.3 MB, free: 7.684 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004779/0.4195, allocations: 2.552 MB / 467.9 MB, free: 5.922 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01115/0.4306, allocations: 8.943 MB / 476.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.4306, allocations: 0 / 476.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.4306, allocations: 0 / 476.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000276/0.4309, allocations: 0 / 476.8 MB, free: 14.44 MB / 382.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.01627/0.4472, allocations: 5.402 MB / 482.2 MB, free: 8.965 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.4472, allocations: 12.03 kB / 482.2 MB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001564/0.4488, allocations: 0.65 MB / 482.9 MB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008325/0.4571, allocations: 1.321 MB / 484.2 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005713/0.4628, allocations: 2.615 MB / 486.8 MB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004102/0.4632, allocations: 357.2 kB / 487.2 MB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001596/0.4648, allocations: 448.7 kB / 487.6 MB, free: 3.516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01532/0.4802, allocations: 6.098 MB / 493.7 MB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001114/0.4803, allocations: 11.89 kB / 493.7 MB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005675/0.4808, allocations: 192 kB / 493.9 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002224/0.4811, allocations: 193.5 kB / 494.1 MB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01234/0.4934, allocations: 5.28 MB / 499.4 MB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03605/0.5294, allocations: 21.03 MB / 0.5082 GB, free: 1.965 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007203/0.5367, allocations: 5.485 MB / 0.5136 GB, free: 11.71 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001126/0.5378, allocations: 0.6009 MB / 0.5142 GB, free: 11.11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002609/0.538, allocations: 199.2 kB / 0.5143 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.97e-05/0.5381, allocations: 47.56 kB / 0.5144 GB, free: 10.83 MB / 430.1 MB Notification: Performance of pre-optimization done (n=94): time 3.296e-06/0.5381, allocations: 0 / 0.5144 GB, free: 10.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=94): time 0.002585/0.5407, allocations: 1.44 MB / 0.5158 GB, free: 9.383 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.5407, allocations: 60.41 kB / 0.5159 GB, free: 9.312 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002657/0.5434, allocations: 1.466 MB / 0.5173 GB, free: 7.836 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.5435, allocations: 37.7 kB / 0.5173 GB, free: 7.793 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002051/0.5455, allocations: 2.045 MB / 0.5193 GB, free: 5.727 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004981/0.546, allocations: 357.1 kB / 0.5197 GB, free: 5.375 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008302/0.5469, allocations: 479.9 kB / 0.5201 GB, free: 4.898 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002675/0.5471, allocations: 361.8 kB / 0.5205 GB, free: 4.539 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001354/0.5485, allocations: 0.8124 MB / 0.5213 GB, free: 3.723 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002322/0.5508, allocations: 1.937 MB / 0.5231 GB, free: 1.227 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003883/0.5547, allocations: 2.931 MB / 0.526 GB, free: 13.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.67e-05/0.5547, allocations: 12 kB / 0.526 GB, free: 13.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004686/0.5594, allocations: 2.806 MB / 0.5288 GB, free: 10.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.76e-05/0.5595, allocations: 24 kB / 0.5288 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-05/0.5595, allocations: 43.98 kB / 0.5288 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.843e-05/0.5596, allocations: 56 kB / 0.5289 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/0.5613, allocations: 0.5342 MB / 0.5294 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.214e-05/0.5614, allocations: 79.72 kB / 0.5295 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.5628, allocations: 306.2 kB / 0.5298 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002085/0.563, allocations: 120 kB / 0.5299 GB, free: 9.77 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.00299/0.566, allocations: 1.668 MB / 0.5315 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003107/0.5663, allocations: 135.1 kB / 0.5316 GB, free: 7.957 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00235/0.5687, allocations: 1.342 MB / 0.533 GB, free: 6.598 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001414/0.5701, allocations: 0.9357 MB / 0.5339 GB, free: 5.656 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.5701, allocations: 0 / 0.5339 GB, free: 5.656 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.5701, allocations: 3.984 kB / 0.5339 GB, free: 5.652 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01937/0.5895, allocations: 13.51 MB / 0.5471 GB, free: 7.223 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.972e-05/0.5895, allocations: 20 kB / 0.5471 GB, free: 7.203 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007845/0.5903, allocations: 219.5 kB / 0.5473 GB, free: 6.988 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.016e-05/0.5903, allocations: 28 kB / 0.5473 GB, free: 6.961 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.996e-05/0.5904, allocations: 40 kB / 0.5474 GB, free: 6.922 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.715e-05/0.5905, allocations: 47.78 kB / 0.5474 GB, free: 6.875 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.168e-05/0.5905, allocations: 28.34 kB / 0.5474 GB, free: 6.848 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003427/0.5939, allocations: 2.459 MB / 0.5498 GB, free: 4.094 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006917/0.5946, allocations: 319.9 kB / 0.5501 GB, free: 3.762 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002067/0.5948, allocations: 51.91 kB / 0.5502 GB, free: 3.711 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007334/0.5955, allocations: 60.02 kB / 0.5502 GB, free: 3.652 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/0.5957, allocations: 135.3 kB / 0.5504 GB, free: 3.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.682e-05/0.5958, allocations: 59.98 kB / 0.5504 GB, free: 3.461 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001672/0.5975, allocations: 0.9916 MB / 0.5514 GB, free: 2.465 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5975, allocations: 0 / 0.5514 GB, free: 2.465 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003329/0.6008, allocations: 0.953 MB / 0.5523 GB, free: 1.508 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.004158/0.605, allocations: 3.095 MB / 0.5554 GB, free: 14.12 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003364/0.6083, allocations: 1.795 MB / 0.5571 GB, free: 12.33 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.758e-05/0.6084, allocations: 4.188 kB / 0.5571 GB, free: 12.32 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009038/0.6093, allocations: 0.5568 MB / 0.5577 GB, free: 11.77 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002406/0.6117, allocations: 385.2 kB / 0.558 GB, free: 11.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03431/0.646, allocations: 19.6 MB / 0.5772 GB, free: 6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004204/0.6502, allocations: 3.075 MB / 0.5802 GB, free: 2.891 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002009/0.6522, allocations: 0.8093 MB / 0.581 GB, free: 2.074 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001892/0.6541, allocations: 1.261 MB / 0.5822 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of SimCode: time 1.303e-06/0.6541, allocations: 0 / 0.5822 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3146/0.9687, allocations: 43.05 MB / 0.6242 GB, free: 158.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/11.43, allocations: 11.67 kB / 0.6242 GB, free: 158.8 MB / 0.5137 GB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar.fmu > Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/BalancingStar/BalancingStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.082765065992135]